SECTION "ROM Bank 07", ROMX[$4000], BANK[$07]

toc_07_4000:
    assign [$FFF4], $04
    ret


    db   $7C, $00, $7E, $00, $7E, $20, $7C, $20
    db   $F4, $10, $F6, $10, $F0, $10, $F2, $10
    db   $21, $B0, $C2, $09, $7E, $FE, $02, $CA
    db   $DD, $41, $A7, $20, $24, $34, $F0, $EE
    db   $17, $17, $E6, $40, $F5, $21, $30, $C4
    db   $09, $B6, $77, $F1, $CB, $27, $21, $50
    db   $C3, $09, $B6, $77, $F0, $EE, $1F, $1F
    db   $1F, $1F, $E6, $01, $21, $40, $C4, $09
    db   $77, $21, $C0, $C2, $09, $F0, $EC, $96
    db   $E0, $EC, $21, $40, $C4, $09, $7E, $E0
    db   $F1, $11, $0D, $40, $CD, $3B, $3C, $CD
    db   $BA, $3D, $21, $C0, $C2, $09, $7E, $A7
    db   $28, $0D, $21, $B0, $C3, $09, $7E, $E0
    db   $F1, $11, $05, $40, $CD, $3B, $3C, $CD
    db   $76, $7C, $21, $60, $C3, $09, $36, $04
    db   $21, $20, $C4, $09, $7E, $A7, $28, $27
    db   $70, $21, $40, $C4, $09, $7E, $EE, $01
    db   $CD, $87, $3B, $21, $A0, $C3, $09, $36
    db   $05, $21, $F4, $FF, $36, $05, $CD, $8C
    db   $08, $36, $1F, $21, $40, $C3, $09, $7E
    db   $C6, $02, $77, $CD, $84, $41, $C9, $CD
    db   $E2, $08, $CD, $B4, $3B, $F0, $F0, $C7

    dw JumpTable_40C1_07 ; 00

    db   $A5, $41, $10, $F0, $00, $00, $00, $00
    db   $F0, $10

JumpTable_40C1_07:
    ld   hl, $C2C0
    add  hl, bc
    ld   [hl], b
    call toc_01_0891
    jr   nz, .else_07_4114

    call toc_07_7D45
    add  a, $08
    cp   $10
    jr   c, .else_07_40E4

    push de
    call toc_07_7D35
    add  a, $08
    pop  de
    cp   $10
    jr   nc, .else_07_4114

    ld   a, e
    cp   $02
    jr   z, .else_07_4114

JumpTable_40C1_07.else_07_40E4:
    call JumpTable_3B8D_00
    call toc_07_7D55
    ld   d, b
    ld   hl, $40B9
    add  hl, de
    ld   a, [hl]
    ld   hl, $C240
    add  hl, bc
    ld   [hl], a
    ld   hl, $40BD
    add  hl, de
    ld   a, [hl]
    ld   hl, $C250
    add  hl, bc
    ld   [hl], a
    ld   hl, $C340
    add  hl, bc
    res  7, [hl]
    ld   hl, $C350
    add  hl, bc
    res  2, [hl]
    call toc_01_3B65
    call toc_01_0891
    ld   [hl], $30
    ret


JumpTable_40C1_07.else_07_4114:
    ld   hl, $C340
    add  hl, bc
    set  7, [hl]
    ld   hl, $C350
    add  hl, bc
    set  2, [hl]
    call toc_01_3B65
    call toc_01_3BD5
    ret  nc

    ld   a, [$C19B]
    and  a
    ret  nz

    ifNe [$DB00], $03, .else_07_413A

    ld   a, [$FFCC]
    and  %00100000
    jr   nz, .else_07_4146

    ret


JumpTable_40C1_07.else_07_413A:
    ld   a, [$DB01]
    cp   $03
    ret  nz

    ld   a, [$FFCC]
    and  %00010000
    jr   z, .return_07_41A4

JumpTable_40C1_07.else_07_4146:
    ld   a, [$C3CF]
    and  a
    ret  nz

    inc  a
    ld   [$C3CF], a
    call JumpTable_3B8D_00
    ld   [hl], $02
    ld   hl, $C280
    add  hl, bc
    ld   [hl], $07
    ld   hl, $C390
    add  hl, bc
    ld   [hl], $01
    ld   hl, $C490
    add  hl, bc
    ld   [hl], b
    copyFromTo [hLinkDirection], [$C15D]
    call toc_01_0891
    ld   [hl], $02
    ld   hl, $FFF3
    ld   [hl], $02
    ld   hl, $C3A0
    add  hl, bc
    ld   [hl], $05
    ld   hl, $C440
    add  hl, bc
    ld   a, [hl]
    xor  $01
    call toc_01_3B87
    ld   a, $BB
    call toc_01_3C01
    ret  c

    ld   a, [$FFD7]
    ld   hl, $C200
    add  hl, de
    ld   [hl], a
    ld   a, [$FFD8]
    ld   hl, $C210
    add  hl, de
    ld   [hl], a
    ld   hl, $C2B0
    add  hl, de
    ld   [hl], $02
    ld   hl, $C2E0
    add  hl, de
    ld   [hl], $40
JumpTable_40C1_07.return_07_41A4:
    ret


    db   $CD, $91, $08, $20, $0A, $CD, $91, $08
    db   $36, $20, $CD, $8D, $3B, $70, $C9, $CD
    db   $E2, $7C, $CD, $9E, $3B, $21, $A0, $C2
    db   $09, $7E, $A7, $20, $E8, $21, $C0, $C2
    db   $09, $36, $04, $F0, $E7, $1F, $1F, $1F
    db   $E6, $01, $CD, $87, $3B, $C9, $F0, $F4
    db   $00, $0C, $10, $0C, $00, $F4, $F0, $F4
    db   $11, $05, $40, $CD, $3B, $3C, $CD, $76
    db   $7C, $CD, $98, $7C, $F0, $E7, $1F, $1F
    db   $1F, $E6, $01, $CD, $87, $3B, $CD, $E2
    db   $7C, $CD, $9E, $3B, $CD, $B4, $3B, $CD
    db   $91, $08, $20, $20, $CD, $ED, $27, $E6
    db   $1F, $C6, $20, $77, $E6, $07, $5F, $50
    db   $21, $D5, $41, $19, $7E, $21, $40, $C2
    db   $09, $77, $21, $D3, $41, $19, $7E, $21
    db   $50, $C2, $09, $77, $C9, $00, $F0, $78
    db   $00, $00, $F8, $7A, $00, $00, $00, $70
    db   $00, $00, $08, $72, $00, $00, $F0, $7C
    db   $00, $00, $F8, $7E, $00, $00, $00, $70
    db   $00, $00, $08, $72, $00, $00, $F0, $78
    db   $00, $00, $F8, $7A, $00, $00, $00, $74
    db   $00, $00, $08, $76, $00, $FC, $F0, $64
    db   $00, $FC, $F8, $66, $00, $00, $00, $60
    db   $00, $00, $08, $62, $00, $FC, $F0, $64
    db   $00, $FC, $F8, $66, $00, $00, $00, $74
    db   $00, $00, $08, $76, $00, $21, $B0, $C2
    db   $09, $7E, $FE, $02, $CA, $17, $44, $A7
    db   $20, $33, $34, $21, $10, $C2, $09, $7E
    db   $C6, $08, $77, $3E, $B8, $CD, $01, $3C
    db   $F0, $D7, $21, $00, $C2, $19, $C6, $06
    db   $77, $F0, $D8, $21, $10, $C2, $19, $C6
    db   $10, $77, $21, $B0, $C2, $19, $36, $02
    db   $21, $50, $C3, $19, $36, $AC, $C5, $D5
    db   $C1, $CD, $65, $3B, $C1, $FA, $9F, $C1
    db   $A7, $28, $0C, $F0, $F1, $FE, $03, $3E
    db   $02, $20, $02, $3E, $04, $E0, $F1, $CD
    db   $B3, $43, $CD, $76, $7C, $F0, $F0, $C7

    dw JumpTable_42D7_07 ; 00

    db   $05, $43, $27, $43, $55, $43, $AA, $43

JumpTable_42D7_07:
    call toc_07_7C23
    jr   nc, .else_07_42F9

    ifNe [$DB0E], $0B, .else_07_42EB

    ld   a, $E8
    call toc_01_2185
    jp   JumpTable_3B8D_00

JumpTable_42D7_07.else_07_42EB:
    cp   $0C
    jr   nc, .else_07_42F4

    ld   a, $E7
    jp   toc_01_2185

JumpTable_42D7_07.else_07_42F4:
    ld   a, $ED
    jp   toc_01_2185

JumpTable_42D7_07.else_07_42F9:
    ld   a, [hFrameCounter]
    and  %00110000
    ld   e, b
    jr   z, .else_07_4301

    inc  e
JumpTable_42D7_07.else_07_4301:
    ld   a, e
    jp   toc_01_3B87

    db   $CD, $8D, $3B, $FA, $77, $C1, $A7, $20
    db   $12, $3E, $01, $EA, $7F, $DB, $EA, $67
    db   $C1, $CD, $91, $08, $36, $D0, $3E, $E9
    db   $C3, $85, $21, $70, $3E, $EA, $CD, $85
    db   $21, $C9, $3E, $02, $E0, $A1, $3E, $01
    db   $EA, $0B, $C1, $CD, $91, $08, $20, $0A
    db   $36, $20, $3E, $EB, $CD, $85, $21, $CD
    db   $8D, $3B, $1E, $03, $FE, $30, $38, $0C
    db   $FE, $80, $30, $B0, $F0, $E7, $E6, $18
    db   $58, $28, $01, $1C, $7B, $C3, $87, $3B
    db   $3E, $02, $E0, $A1, $CD, $91, $08, $20
    db   $46, $EA, $0B, $C1, $CD, $8D, $3B, $3E
    db   $54, $CD, $01, $3C, $F0, $D7, $D6, $20
    db   $21, $00, $C2, $19, $77, $E0, $EE, $F0
    db   $D8, $C6, $08, $21, $10, $C2, $19, $77
    db   $E0, $EC, $21, $20, $C3, $19, $36, $20
    db   $21, $40, $C4, $19, $36, $01, $C5, $D5
    db   $C1, $3E, $0A, $CD, $25, $3C, $C1, $CD
    db   $00, $47, $3E, $08, $E0, $F2, $3E, $0C
    db   $EA, $0E, $DB, $3E, $0D, $E0, $A5, $3E
    db   $03, $CD, $87, $3B, $C9, $3E, $02, $E0
    db   $A1, $CD, $8D, $3B, $70, $C9, $F0, $F1
    db   $17, $17, $17, $17, $E6, $F0, $5F, $50
    db   $21, $22, $42, $19, $0E, $04, $CD, $26
    db   $3D, $C9, $FE, $FE, $FE, $FE, $FF, $FF
    db   $FF, $FF, $FF, $00, $00, $01, $01, $01
    db   $01, $01, $02, $02, $02, $02, $02, $02
    db   $02, $02, $02, $02, $02, $02, $02, $02
    db   $02, $02, $02, $02, $01, $00, $00, $FF
    db   $FE, $FE, $01, $01, $01, $00, $00, $FF
    db   $FF, $FF, $00, $00, $00, $00, $00, $00
    db   $00, $00, $FF, $FF, $FF, $00, $00, $01
    db   $01, $01, $FE, $FE, $FF, $00, $00, $01
    db   $02, $02, $00, $00, $01, $02, $02, $02
    db   $01, $00, $21, $D0, $C3, $09, $7E, $1F
    db   $1F, $1F, $E6, $07, $5F, $50, $21, $0F
    db   $44, $19, $F0, $EC, $86, $E0, $EC, $D6
    db   $10, $EA, $10, $C2, $CD, $92, $44, $CD
    db   $D5, $3B, $30, $1E, $F0, $9B, $E6, $80
    db   $20, $18, $CD, $45, $7D, $C6, $08, $CB
    db   $7F, $28, $0F, $F0, $EC, $D6, $0F, $E0
    db   $99, $3E, $02, $E0, $9B, $3E, $01, $EA
    db   $47, $C1, $CD, $76, $7C, $21, $D0, $C3
    db   $09, $34, $7E, $E6, $07, $20, $19, $1E
    db   $48, $FA, $47, $C1, $A7, $28, $02, $1E
    db   $4B, $21, $10, $C2, $09, $7E, $93, $28
    db   $07, $E6, $80, $28, $02, $34, $34, $35
    db   $C9, $00, $F8, $68, $00, $00, $00, $6A
    db   $00, $00, $08, $6A, $00, $00, $10, $6A
    db   $00, $00, $18, $6C, $00, $21, $7E, $44
    db   $0E, $05, $CD, $26, $3D, $C9, $72, $20
    db   $70, $20, $70, $00, $72, $00, $76, $00
    db   $78, $00, $78, $20, $76, $20, $74, $00
    db   $74, $20, $74, $10, $74, $30, $00, $FC
    db   $7A, $00, $00, $04, $7C, $00, $00, $0C
    db   $7E, $00, $00, $FC, $7E, $20, $00, $04
    db   $7C, $20, $00, $0C, $7A, $20, $00, $00
    db   $01, $02, $02, $02, $01, $00, $21, $D0
    db   $C2, $09, $7E, $A7, $C2, $12, $47, $F0
    db   $F0, $FE, $02, $30, $1A, $F0, $F8, $E6
    db   $20, $28, $02, $34, $C9, $F0, $E7, $1F
    db   $1F, $1F, $E6, $07, $5F, $50, $21, $CB
    db   $44, $19, $F0, $EC, $86, $E0, $EC, $F0
    db   $F1, $FE, $04, $38, $18, $D6, $04, $17
    db   $17, $E6, $FC, $5F, $17, $E6, $F8, $83
    db   $5F, $50, $21, $B3, $44, $19, $0E, $03
    db   $CD, $26, $3D, $18, $09, $11, $9B, $44
    db   $CD, $3B, $3C, $CD, $BA, $3D, $F0, $F0
    db   $FE, $05, $28, $04, $FE, $03, $30, $12
    db   $F0, $EC, $C6, $0B, $E0, $EC, $AF, $E0
    db   $F1, $11, $AB, $44, $CD, $3B, $3C, $CD
    db   $BA, $3D, $CD, $76, $7C, $F0, $F0, $C7

    dw JumpTable_455B_07 ; 00

    db   $64, $45, $B0, $45, $B3, $45, $DE, $45
    db   $FC, $45, $11, $46, $6F, $46, $98, $46
    db   $BA, $46, $D5, $46

JumpTable_455B_07:
    ld   hl, $C2B0
    add  hl, bc
    ld   [hl], $30
    jp   JumpTable_3B8D_00

    db   $CD, $35, $7D, $7B, $CD, $87, $3B, $CD
    db   $D0, $7B, $CD, $35, $7D, $C6, $12, $FE
    db   $24, $30, $1C, $CD, $45, $7D, $C6, $12
    db   $FE, $24, $30, $13, $F0, $9C, $A7, $28
    db   $0E, $CD, $8D, $3B, $CD, $91, $08, $36
    db   $14, $3E, $F1, $CD, $85, $21, $C9, $CD
    db   $23, $7C, $30, $17, $FA, $0E, $DB, $FE
    db   $0C, $20, $0B, $3E, $F2, $CD, $85, $21
    db   $CD, $8D, $3B, $36, $05, $C9, $3E, $F0
    db   $CD, $85, $21, $C9, $C3, $8D, $3B, $FA
    db   $9F, $C1, $A7, $20, $24, $CD, $91, $08
    db   $20, $0E, $36, $40, $CD, $00, $47, $CD
    db   $8D, $3B, $3E, $FF, $CD, $87, $3B, $C9
    db   $1E, $FF, $FE, $10, $30, $07, $1E, $02
    db   $FE, $08, $38, $01, $1C, $7B, $CD, $87
    db   $3B, $C9, $CD, $91, $08, $20, $18, $21
    db   $B0, $C2, $09, $7E, $2F, $3C, $77, $21
    db   $00, $C2, $09, $86, $77, $E0, $EE, $CD
    db   $8D, $3B, $36, $01, $CD, $00, $47, $C9
    db   $CD, $8D, $3B, $FA, $77, $C1, $A7, $20
    db   $06, $CD, $91, $08, $36, $C0, $C9, $70
    db   $3E, $F4, $C3, $85, $21, $FA, $9F, $C1
    db   $A7, $20, $57, $CD, $91, $08, $28, $40
    db   $FE, $70, $20, $08, $35, $F5, $3E, $F3
    db   $CD, $85, $21, $F1, $FE, $90, $20, $16
    db   $F0, $99, $D6, $03, $E0, $D8, $F0, $98
    db   $E0, $D7, $3E, $0E, $E0, $F2, $3E, $01
    db   $CD, $53, $09, $CD, $91, $08, $1E, $00
    db   $FE, $20, $38, $06, $FE, $90, $30, $02
    db   $1E, $01, $7B, $E0, $9C, $21, $A1, $FF
    db   $36, $02, $3E, $04, $EA, $3B, $C1, $C9
    db   $3E, $0D, $EA, $0E, $DB, $E0, $A5, $CD
    db   $98, $08, $CD, $8D, $3B, $CD, $91, $08
    db   $36, $30, $C9, $CD, $91, $08, $20, $23
    db   $CD, $8D, $3B, $F0, $F1, $C6, $04, $CD
    db   $87, $3B, $1E, $08, $FE, $04, $20, $02
    db   $1E, $F8, $21, $40, $C2, $09, $73, $21
    db   $20, $C3, $09, $36, $20, $CD, $00, $47
    db   $CD, $44, $72, $C9, $CD, $E2, $7C, $CD
    db   $1B, $7D, $21, $20, $C3, $09, $35, $35
    db   $21, $10, $C3, $09, $7E, $E6, $80, $28
    db   $0C, $70, $CD, $8D, $3B, $CD, $00, $47
    db   $CD, $91, $08, $36, $10, $C9, $CD, $91
    db   $08, $20, $0A, $36, $20, $3E, $FF, $CD
    db   $87, $3B, $C3, $8D, $3B, $1E, $02, $FE
    db   $08, $30, $01, $1C, $7B, $CD, $87, $3B
    db   $C9, $CD, $91, $08, $C0, $21, $90, $C3
    db   $09, $7E, $FE, $03, $CA, $7C, $7D, $34
    db   $CD, $ED, $27, $E6, $01, $CD, $87, $3B
    db   $1E, $10, $A7, $28, $02, $1E, $F0, $21
    db   $10, $C2, $09, $7E, $83, $77, $CD, $8D
    db   $3B, $36, $07, $C9, $F0, $EC, $E0, $D8
    db   $F0, $EE, $E0, $D7, $3E, $01, $CD, $53
    db   $09, $3E, $0E, $E0, $F2, $C9, $F0, $F0
    db   $C7

    dw JumpTable_471D_07 ; 00

    db   $36, $47, $4B, $47, $75, $47

JumpTable_471D_07:
    call toc_07_7C76
    ld   hl, $C200
    add  hl, bc
    ld   [hl], $58
    ld   hl, $C210
    add  hl, bc
    ld   [hl], $80
    ifNot [$C130], .return_07_4735

    call JumpTable_3B8D_00
JumpTable_471D_07.return_07_4735:
    ret


    db   $CD, $76, $7C, $21, $20, $C3, $09, $36
    db   $20, $21, $50, $C2, $09, $36, $FC, $CD
    db   $00, $47, $C3, $8D, $3B, $CD, $CE, $47
    db   $CD, $76, $7C, $CD, $E2, $7C, $CD, $1B
    db   $7D, $21, $20, $C3, $09, $35, $21, $10
    db   $C3, $09, $7E, $E6, $80, $28, $04, $70
    db   $CD, $8D, $3B, $F0, $E7, $1F, $1F, $1F
    db   $1F, $E6, $01, $CD, $87, $3B, $C9, $CD
    db   $35, $7D, $7B, $C6, $02, $E0, $F1, $CD
    db   $CE, $47, $CD, $76, $7C, $CD, $23, $7C
    db   $30, $05, $3E, $F6, $CD, $85, $21, $C9
    db   $F0, $00, $70, $00, $F0, $08, $72, $00
    db   $00, $00, $74, $00, $00, $08, $76, $00
    db   $F0, $00, $72, $20, $F0, $08, $70, $20
    db   $00, $00, $76, $20, $00, $08, $74, $20
    db   $F0, $FF, $72, $20, $F0, $07, $70, $20
    db   $00, $00, $7A, $20, $00, $08, $78, $20
    db   $F0, $01, $70, $00, $F0, $09, $72, $00
    db   $00, $00, $78, $00, $00, $08, $7A, $00
    db   $F0, $F1, $17, $17, $17, $17, $E6, $F0
    db   $5F, $50, $21, $8E, $47, $19, $0E, $04
    db   $C3, $26, $3D, $6E, $20, $6C, $20, $6C
    db   $00, $6E, $00, $70, $00, $72, $00, $74
    db   $00, $76, $00, $78, $00, $7A, $00, $7C
    db   $00, $76, $00, $72, $20, $70, $20, $76
    db   $20, $74, $20, $7A, $20, $78, $20, $76
    db   $20, $7C, $20, $7E, $00, $7E, $20, $FA
    db   $A5, $DB, $A7, $28, $4A, $FA, $0E, $DB
    db   $FE, $08, $30, $08, $FA, $66, $DB, $E6
    db   $02, $C2, $7C, $7D, $11, $F9, $47, $FA
    db   $0E, $DB, $FE, $08, $30, $09, $CD, $35
    db   $7D, $7B, $E0, $F1, $11, $E1, $47, $CD
    db   $3B, $3C, $F0, $E7, $1F, $1F, $1F, $1F
    db   $E6, $01, $CD, $87, $3B, $CD, $D0, $7B
    db   $CD, $23, $7C, $30, $11, $FA, $0E, $DB
    db   $FE, $08, $30, $05, $3E, $27, $C3, $97
    db   $21, $3E, $76, $CD, $85, $21, $C9, $F0
    db   $F8, $E6, $20, $C2, $7C, $7D, $11, $E9
    db   $47, $21, $80, $C3, $09, $7E, $A7, $20
    db   $03, $11, $F9, $47, $CD, $3B, $3C, $FA
    db   $0E, $DB, $FE, $08, $30, $18, $F0, $EE
    db   $C6, $10, $E0, $EE, $F0, $EC, $D6, $10
    db   $E0, $EC, $AF, $E0, $F1, $11, $09, $48
    db   $CD, $3B, $3C, $CD, $BA, $3D, $CD, $76
    db   $7C, $CD, $D0, $7B, $F0, $F0, $C7

    dw JumpTable_48A7_07 ; 00

    db   $E4, $48, $09, $49, $3E, $49, $4B, $49

JumpTable_48A7_07:
    call toc_07_7D35
    ld   hl, $C380
    add  hl, bc
    ld   [hl], e
    add  a, $24
    cp   $48
    jr   nc, .else_07_48D9

    call toc_07_7D45
    add  a, $24
    cp   $48
    jr   nc, .else_07_48D9

    call toc_07_7C23
    jr   nc, .else_07_48D4

    ld   a, [$DB0E]
    cp   $07
    ld   a, $70
    jr   z, .else_07_48CE

    ld   a, $77
JumpTable_48A7_07.else_07_48CE:
    call toc_01_2185
    call JumpTable_3B8D_00
JumpTable_48A7_07.else_07_48D4:
    xor  a
    call toc_01_3B87
    ret


JumpTable_48A7_07.else_07_48D9:
    ld   a, [hFrameCounter]
    rra
    rra
    rra
    and  %00000001
    call toc_01_3B87
    ret


    db   $FA, $77, $C1, $A7, $20, $15, $FA, $0E
    db   $DB, $FE, $07, $20, $0E, $3E, $72, $CD
    db   $85, $21, $CD, $8D, $3B, $CD, $91, $08
    db   $36, $C0, $C9, $3E, $71, $CD, $85, $21
    db   $CD, $8D, $3B, $70, $C9, $FA, $9F, $C1
    db   $A7, $20, $22, $CD, $91, $08, $20, $14
    db   $EA, $0B, $C1, $3E, $73, $CD, $85, $21
    db   $3E, $08, $EA, $0E, $DB, $3E, $0D, $E0
    db   $A5, $C3, $8D, $3B, $3E, $02, $E0, $A1
    db   $3E, $01, $EA, $0B, $C1, $F0, $E7, $1F
    db   $1F, $1F, $E6, $01, $C6, $02, $CD, $87
    db   $3B, $C9, $FA, $9F, $C1, $A7, $20, $06
    db   $CD, $98, $08, $CD, $8D, $3B, $C9, $CD
    db   $31, $49, $CD, $23, $7C, $30, $05, $3E
    db   $75, $CD, $85, $21, $C9, $FA, $00, $70
    db   $00, $FA, $08, $72, $00, $FA, $10, $74
    db   $00, $FA, $18, $70, $20, $0A, $00, $76
    db   $00, $0A, $08, $78, $00, $0A, $10, $78
    db   $20, $0A, $18, $76, $20, $FA, $00, $70
    db   $00, $FA, $08, $74, $20, $FA, $10, $72
    db   $20, $FA, $18, $70, $20, $0A, $00, $76
    db   $00, $0A, $08, $78, $00, $0A, $10, $78
    db   $20, $0A, $18, $76, $20, $7E, $00, $7A
    db   $00, $7C, $00, $7C, $20, $7A, $20, $AF
    db   $E0, $F1, $3E, $4A, $E0, $EC, $11, $9B
    db   $49, $CD, $3B, $3C, $3E, $68, $E0, $EE
    db   $11, $9F, $49, $CD, $3B, $3C, $FA, $0E
    db   $DB, $FE, $06, $20, $0E, $3E, $74, $E0
    db   $EE, $3E, $38, $E0, $EC, $11, $99, $49
    db   $CD, $D0, $3C, $CD, $BA, $3D, $21, $B0
    db   $C3, $09, $7E, $21, $59, $49, $A7, $28
    db   $03, $21, $79, $49, $0E, $08, $CD, $26
    db   $3D, $3E, $06, $CD, $D0, $3D, $AF, $CD
    db   $87, $3B, $CD, $76, $7C, $F0, $E7, $E6
    db   $20, $CD, $87, $3B, $CD, $D0, $7B, $F0
    db   $F0, $C7

    dw JumpTable_4A04_07 ; 00

    db   $39, $4A, $61, $4A

JumpTable_4A04_07:
    call toc_07_7C16
    jr   nc, .return_07_4A38

    ld   e, $D3
    ld   a, [$D8FD]
    and  %00110000
    jr   nz, .else_07_4A34

    ifNe [$DB0E], $06, .else_07_4A21

    ld   a, $CF
    call toc_07_4A74
    jp   JumpTable_3B8D_00

JumpTable_4A04_07.else_07_4A21:
    ld   e, $D4
    ld   a, [$DB73]
    and  a
    jr   nz, .else_07_4A34

    ld   e, $CE
    ifNe [$DB0E], $07, .else_07_4A34

    ld   e, $D2
JumpTable_4A04_07.else_07_4A34:
    ld   a, e
    call toc_07_4A74
JumpTable_4A04_07.return_07_4A38:
    ret


    db   $FA, $9F, $C1, $A7, $20, $21, $CD, $8D
    db   $3B, $FA, $77, $C1, $A7, $28, $07, $70
    db   $3E, $D1, $CD, $74, $4A, $C9, $3E, $07
    db   $EA, $0E, $DB, $3E, $0D, $E0, $A5, $CD
    db   $98, $08, $CD, $91, $08, $36, $70, $C9
    db   $CD, $91, $08, $20, $0D, $FA, $9F, $C1
    db   $A7, $20, $07, $CD, $32, $4A, $CD, $8D
    db   $3B, $70, $C9

toc_07_4A74:
    ld   e, a
    ld   a, [hLinkPositionY]
    push af
    assign [hLinkPositionY], $10
    ld   a, e
    call toc_01_2185
    pop  af
    ld   [hLinkPositionY], a
    ret


    db   $70, $00, $70, $20, $F0, $F8, $E6, $20
    db   $C2, $7C, $7D, $21, $40, $C4, $09, $7E
    db   $A7, $C2, $79, $4B, $79, $EA, $01, $D2
    db   $CD, $91, $08, $E6, $20, $28, $04, $21
    db   $EE, $FF, $35, $11, $84, $4A, $CD, $3B
    db   $3C, $CD, $76, $7C, $F0, $F0, $C7

    dw JumpTable_4ABD_07 ; 00

    db   $10, $4B, $18, $4B, $3E, $4B, $3F, $4B

JumpTable_4ABD_07:
    ifNe [$DB7F], $02, .else_07_4AD8

    ld   hl, $C210
    add  hl, bc
    ld   a, [hl]
    add  a, $10
    ld   [hl], a
    ld   hl, $C310
    add  hl, bc
    ld   [hl], $10
    call JumpTable_3B8D_00
    ld   [hl], $04
    ret


JumpTable_4ABD_07.else_07_4AD8:
    clear [$D202]
    call JumpTable_3B8D_00
    ld   a, $B3
    call toc_01_3C01
    jr   c, .else_07_4B0E

    ld   a, [$FFD7]
    ld   hl, $C200
    add  hl, de
    ld   [hl], a
    ld   a, [$FFD8]
    ld   hl, $C210
    add  hl, de
    ld   [hl], a
    ld   hl, $C440
    add  hl, de
    ld   [hl], $01
    ld   hl, $C240
    add  hl, de
    ld   [hl], $0E
    ld   hl, $C340
    add  hl, de
    ld   [hl], $C1
    ld   hl, $C350
    add  hl, de
    ld   [hl], $00
    and  a
    ret


JumpTable_4ABD_07.else_07_4B0E:
    scf
    ret


    db   $FA, $02, $D2, $A7, $C2, $8D, $3B, $C9
    db   $21, $D0, $C3, $09, $7E, $FE, $05, $CA
    db   $8D, $3B, $F0, $E7, $E6, $07, $20, $15
    db   $CD, $DF, $4A, $38, $10, $21, $D0, $C3
    db   $09, $34, $7E, $21, $D0, $C3, $19, $77
    db   $21, $40, $C2, $19, $70, $C9, $C9, $CD
    db   $91, $08, $20, $30, $CD, $1B, $7D, $21
    db   $20, $C3, $09, $35, $35, $21, $10, $C3
    db   $09, $7E, $E6, $80, $28, $1E, $70, $21
    db   $20, $C3, $09, $70, $CD, $D5, $3B, $30
    db   $13, $AF, $EA, $7F, $DB, $3E, $06, $EA
    db   $0E, $DB, $3E, $0D, $E0, $A5, $CD, $98
    db   $08, $CD, $7C, $7D, $C9, $72, $00, $72
    db   $40, $11, $75, $4B, $CD, $D0, $3C, $F0
    db   $E7, $1F, $1F, $E6, $01, $CD, $87, $3B
    db   $CD, $76, $7C, $F0, $F0, $C7

    dw JumpTable_4B9A_07 ; 00

    db   $1B, $4C, $83, $4C, $01, $FF, $10, $F0
    db   $0B, $F5

JumpTable_4B9A_07:
    ld   a, [hFrameCounter]
    and  %00000001
    jr   nz, .else_07_4BE0

    ld   hl, $C2B0
    add  hl, bc
    ld   e, [hl]
    ld   d, b
    ld   hl, $4B94
    add  hl, de
    ld   a, [hl]
    ld   hl, $C240
    add  hl, bc
    add  a, [hl]
    ld   [hl], a
    ld   hl, $4B96
    add  hl, de
    cp   [hl]
    jr   nz, .else_07_4BC0

    ld   hl, $C2B0
    add  hl, bc
    ld   a, [hl]
    xor  $01
    ld   [hl], a
JumpTable_4B9A_07.else_07_4BC0:
    ld   hl, $C2C0
    add  hl, bc
    ld   e, [hl]
    ld   d, b
    ld   hl, $4B94
    add  hl, de
    ld   a, [hl]
    ld   hl, $C250
    add  hl, bc
    add  a, [hl]
    ld   [hl], a
    ld   hl, $4B98
    add  hl, de
    cp   [hl]
    jr   nz, .else_07_4BE0

    ld   hl, $C2C0
    add  hl, bc
    ld   a, [hl]
    xor  $01
    ld   [hl], a
JumpTable_4B9A_07.else_07_4BE0:
    call toc_07_7CE2
    ld   a, [$D202]
    and  a
    jp   nz, JumpTable_3B8D_00

    ret


    db   $F0, $E8, $E8, $E0, $E0, $D8, $10, $18
    db   $18, $20, $20, $28, $00, $F8, $08, $F8
    db   $08, $00, $00, $08, $F8, $08, $F8, $00
    db   $00, $F8, $08, $F8, $08, $00, $00, $08
    db   $F8, $08, $F8, $00, $10, $18, $18, $20
    db   $20, $28, $F0, $E8, $E8, $E0, $E0, $D8
    db   $3E, $22, $E0, $F2, $FA, $04, $D2, $5F
    db   $50, $21, $80, $C2, $19, $7E, $A7, $CA
    db   $7C, $7D, $F0, $E7, $E6, $07, $21, $D0
    db   $C3, $09, $BE, $20, $47, $FA, $04, $D2
    db   $5F, $50, $21, $80, $C3, $19, $7E, $5F
    db   $21, $D0, $C3, $09, $17, $17, $E6, $FC
    db   $83, $83, $86, $5F, $50, $F0, $98, $F5
    db   $F0, $99, $F5, $C5, $FA, $04, $D2, $4F
    db   $21, $EB, $4B, $19, $7E, $21, $00, $C2
    db   $09, $86, $E0, $98, $21, $03, $4C, $19
    db   $7E, $21, $10, $C2, $09, $86, $E0, $99
    db   $C1, $3E, $24, $CD, $25, $3C, $F1, $E0
    db   $99, $F1, $E0, $98, $CD, $E2, $7C, $C9
    db   $C9, $5A, $20, $58, $20, $5E, $20, $5C
    db   $20, $58, $00, $5A, $00, $5C, $00, $5E
    db   $00, $54, $00, $56, $00, $56, $20, $54
    db   $20, $50, $00, $52, $00, $52, $20, $50
    db   $20, $74, $00, $76, $00, $79, $EA, $04
    db   $D2, $F0, $F8, $E6, $40, $C2, $7C, $7D
    db   $FA, $67, $DB, $E6, $02, $CA, $7C, $7D
    db   $11, $84, $4C, $CD, $3B, $3C, $CD, $76
    db   $7C, $CD, $1B, $7D, $21, $20, $C3, $09
    db   $35, $35, $21, $10, $C3, $09, $7E, $E6
    db   $80, $28, $06, $70, $21, $20, $C3, $09
    db   $70, $F0, $F0, $C7

    dw JumpTable_4CED_07 ; 00

    db   $0F, $4D, $46, $4D, $BA, $4D, $43, $4E
    db   $AA, $4E, $DA, $4E

JumpTable_4CED_07:
    ld   a, $02
    call toc_01_3B87
    ld   hl, $C200
    add  hl, bc
    ld   [hl], $60
    ld   hl, $C210
    add  hl, bc
    ld   [hl], $58
    call toc_07_7BD0
    call toc_07_7C23
    jr   nc, .return_07_4D0E

    ld   a, $C0
    call toc_01_2185
    call JumpTable_3B8D_00
JumpTable_4CED_07.return_07_4D0E:
    ret


    db   $CD, $D0, $7B, $FA, $9F, $C1, $A7, $20
    db   $25, $FA, $77, $C1, $A7, $20, $16, $3E
    db   $02, $EA, $7F, $DB, $21, $87, $D8, $CB
    db   $F6, $CD, $91, $08, $36, $A0, $3E, $01
    db   $E0, $F2, $C3, $8D, $3B, $3E, $C2, $CD
    db   $85, $21, $CD, $8D, $3B, $70, $C9, $78
    db   $00, $FF, $00, $7A, $00, $7C, $00, $3E
    db   $01, $E0, $A1, $EA, $67, $C1, $CD, $91
    db   $08, $FE, $30, $38, $18, $AF, $E0, $F1
    db   $F0, $EC, $D6, $10, $E0, $EC, $11, $3E
    db   $4D, $CD, $3B, $3C, $CD, $BA, $3D, $3E
    db   $08, $CD, $87, $3B, $C9, $FE, $18, $30
    db   $28, $3E, $02, $E0, $9E, $21, $40, $C2
    db   $09, $36, $FE, $21, $50, $C2, $09, $36
    db   $F4, $CD, $E2, $7C, $CD, $91, $08, $20
    db   $10, $3E, $34, $EA, $68, $D3, $E0, $B0
    db   $CD, $91, $08, $36, $C0, $CD, $8D, $3B
    db   $C9, $3E, $01, $E0, $F1, $F0, $EE, $D6
    db   $0C, $E0, $EE, $11, $3E, $4D, $CD, $3B
    db   $3C, $CD, $BA, $3D, $CD, $91, $08, $1F
    db   $1F, $1F, $1F, $E6, $01, $C6, $02, $CD
    db   $87, $3B, $C9, $3E, $01, $E0, $A1, $CD
    db   $91, $08, $20, $05, $36, $0C, $CD, $8D
    db   $3B, $CD, $91, $08, $FE, $20, $20, $0A
    db   $21, $20, $C3, $09, $36, $18, $CD, $44
    db   $72, $AF, $FE, $60, $20, $04, $21, $02
    db   $D2, $34, $FE, $A0, $20, $0B, $FA, $01
    db   $D2, $5F, $50, $21, $E0, $C2, $19, $36
    db   $A0, $E6, $20, $28, $12, $3E, $01, $E0
    db   $F1, $F0, $EE, $D6, $0E, $E0, $EE, $F0
    db   $EC, $D6, $08, $E0, $EC, $18, $09, $AF
    db   $E0, $F1, $F0, $EC, $D6, $10, $E0, $EC
    db   $11, $3E, $4D, $CD, $3B, $3C, $CD, $BA
    db   $3D, $CD, $91, $08, $1E, $02, $E6, $20
    db   $28, $01, $1C, $7B, $CD, $87, $3B, $C9
    db   $20, $00, $E0, $00, $00, $E0, $00, $20
    db   $00, $02, $01, $03, $16, $28, $28, $28
    db   $28, $28, $28, $28, $28, $28, $28, $28
    db   $00, $02, $04, $06, $3E, $01, $E0, $A1
    db   $CD, $91, $08, $20, $17, $21, $D0, $C3
    db   $09, $7E, $3C, $77, $FE, $0B, $CA, $8D
    db   $3B, $5F, $50, $21, $32, $4E, $19, $5E
    db   $CD, $91, $08, $73, $21, $D0, $C3, $09
    db   $7E, $E6, $03, $5F, $50, $21, $27, $4E
    db   $19, $7E, $21, $40, $C2, $09, $77, $21
    db   $2B, $4E, $19, $7E, $21, $50, $C2, $09
    db   $77, $21, $2F, $4E, $19, $7E, $21, $80
    db   $C3, $09, $77, $CD, $55, $7D, $7B, $EE
    db   $01, $E0, $9E, $CD, $E2, $7C, $21, $80
    db   $C3, $09, $5E, $50, $21, $3F, $4E, $19
    db   $F0, $E7, $1F, $1F, $1F, $E6, $01, $B6
    db   $C3, $87, $3B, $3E, $01, $E0, $A1, $21
    db   $80, $C3, $09, $3E, $01, $77, $21, $40
    db   $C2, $09, $36, $E4, $21, $50, $C2, $09
    db   $36, $08, $CD, $E2, $7C, $F0, $EE, $FE
    db   $C0, $38, $0C, $FE, $C4, $D2, $D6, $4E
    db   $AF, $EA, $67, $C1, $CD, $8D, $3B, $3E
    db   $01, $18, $B6, $FA, $01, $D2, $5F, $50
    db   $21, $90, $C2, $19, $34, $21, $E0, $C2
    db   $19, $36, $50, $21, $10, $C2, $19, $7E
    db   $C6, $10, $77, $21, $10, $C3, $19, $36
    db   $10, $C3, $7C, $7D, $40, $00, $40, $20
    db   $42, $00, $42, $20, $11, $FB, $4E, $CD
    db   $3B, $3C, $CD, $76, $7C, $F0, $E7, $1F
    db   $1F, $1F, $1F, $E6, $01, $CD, $87, $3B
    db   $F0, $F0, $C7

    dw JumpTable_4F26_07 ; 00

    db   $74, $4F, $08, $F8, $00, $00, $00, $00
    db   $F8, $08

JumpTable_4F26_07:
    call toc_07_7BD0
    jr   nc, .else_07_4F66

    ld   a, [hPressedButtonsMask]
    and  %00001111
    jr   z, .else_07_4F66

    assign [$C144], $01
    ld   hl, $C3D0
    add  hl, bc
    ld   a, [hl]
    inc  a
    ld   [hl], a
    cp   $10
    jr   nz, .return_07_4F6B

    call JumpTable_3B8D_00
    call toc_07_7D55
    ld   hl, $C380
    add  hl, bc
    ld   a, e
    xor  $01
    ld   e, a
    ld   [hl], e
    ld   d, b
    ld   hl, $4F1E
    add  hl, de
    ld   a, [hl]
    ld   hl, $C240
    add  hl, bc
    ld   [hl], a
    ld   hl, $4F22
    add  hl, de
    ld   a, [hl]
    ld   hl, $C250
    add  hl, bc
    ld   [hl], a
    ret


JumpTable_4F26_07.else_07_4F66:
    ld   hl, $C3D0
    add  hl, bc
    ld   [hl], b
JumpTable_4F26_07.return_07_4F6B:
    ret


    db   $10, $F0, $00, $00, $00, $00, $F0, $10
    db   $3E, $01, $E0, $A1, $3E, $3E, $E0, $F2
    db   $F0, $CC, $E6, $0F, $57, $28, $1F, $E6
    db   $03, $28, $09, $1E, $00, $E6, $01, $20
    db   $01, $1C, $18, $07, $1E, $02, $CB, $52
    db   $20, $01, $1C, $21, $80, $C3, $09, $7E
    db   $AB, $FE, $01, $28, $01, $73, $CD, $E2
    db   $7C, $21, $00, $C2, $09, $7E, $D6, $08
    db   $21, $10, $C2, $09, $B6, $E6, $0F, $C2
    db   $86, $50, $7E, $D6, $10, $E0, $CD, $21
    db   $00, $C2, $09, $7E, $D6, $08, $E0, $CE
    db   $CB, $37, $E6, $0F, $5F, $F0, $CD, $E6
    db   $F0, $B3, $5F, $50, $21, $11, $D7, $19
    db   $36, $0D, $CD, $39, $28, $21, $01, $D6
    db   $FA, $00, $D6, $5F, $C6, $0A, $EA, $00
    db   $D6, $16, $00, $19, $F0, $CF, $22, $F0
    db   $D0, $22, $3E, $81, $22, $3E, $10, $22
    db   $3E, $12, $22, $F0, $CF, $22, $F0, $D0
    db   $3C, $22, $3E, $81, $22, $3E, $11, $22
    db   $3E, $13, $22, $70, $21, $80, $C3, $09
    db   $5E, $CD, $50, $4F, $21, $80, $C3, $09
    db   $5E, $50, $21, $6C, $4F, $19, $F0, $CE
    db   $86, $CB, $37, $E6, $0F, $F5, $21, $70
    db   $4F, $19, $F1, $5F, $F0, $CD, $86, $E6
    db   $F0, $B3, $5F, $50, $21, $11, $D7, $19
    db   $5E, $16, $01, $CD, $DB, $29, $FE, $0B
    db   $28, $48, $FE, $50, $28, $44, $FE, $51
    db   $28, $40, $F0, $EE, $E0, $D7, $F0, $EC
    db   $E0, $D8, $3E, $2F, $E0, $F2, $3E, $02
    db   $CD, $53, $09, $21, $20, $C5, $19, $36
    db   $0F, $CD, $7C, $7D, $FA, $8E, $C1, $E6
    db   $0F, $FE, $0E, $20, $1D, $C5, $48, $21
    db   $00, $D7, $2A, $E5, $5F, $16, $01, $CD
    db   $DB, $29, $E1, $FE, $50, $28, $0A, $FE
    db   $51, $28, $06, $0D, $20, $EC, $CD, $EC
    db   $08, $C1, $C9, $00, $00, $01, $01, $01
    db   $02, $02, $02, $00, $00, $0F, $0F, $0F
    db   $0E, $0E, $0E, $08, $08, $07, $07, $07
    db   $06, $06, $06, $08, $08, $09, $09, $09
    db   $0A, $0A, $0A, $04, $04, $03, $03, $03
    db   $02, $02, $02, $0C, $0C, $0D, $0D, $0D
    db   $0E, $0E, $0E, $04, $04, $05, $05, $05
    db   $06, $06, $06, $0C, $0C, $0B, $0B, $0B
    db   $0A, $0A, $0A, $F0, $D7, $07, $E6, $01
    db   $5F, $F0, $D8, $07, $17, $E6, $02, $B3
    db   $17, $17, $17, $E6, $18, $67, $F0, $D8
    db   $CB, $7F, $28, $02, $2F, $3C, $57, $F0
    db   $D7, $CB, $7F, $28, $02, $2F, $3C, $BA
    db   $30, $0D, $CB, $2F, $CB, $2F, $84, $5F
    db   $50, $21, $87, $50, $19, $7E, $C9, $7A
    db   $CB, $2F, $CB, $2F, $84, $5F, $50, $21
    db   $A7, $50, $19, $7E, $C9, $21, $70, $C4
    db   $09, $70, $21, $F0, $C3, $09, $70, $21
    db   $00, $C4, $09, $70, $CD, $40, $52, $CD
    db   $76, $7C, $CD, $E2, $08, $F0, $F0, $C7

    dw JumpTable_5130_07 ; 00

    db   $42, $51, $6C, $51, $A7, $51, $B8, $51
    db   $C4, $51

JumpTable_5130_07:
    ld   a, [$FFEE]
    ld   hl, $C2B0
    add  hl, bc
    ld   [hl], a
    ld   a, [$FFEF]
    ld   hl, $C2C0
    add  hl, bc
    ld   [hl], a
    call JumpTable_3B8D_00
    ret


    db   $CD, $91, $08, $20, $20, $21, $40, $C3
    db   $09, $CB, $F6, $CD, $35, $7D, $C6, $20
    db   $FE, $40, $30, $11, $CD, $45, $7D, $C6
    db   $20, $FE, $40, $30, $08, $CD, $91, $08
    db   $36, $30, $CD, $8D, $3B, $AF, $CD, $87
    db   $3B, $C9, $CD, $91, $08, $20, $16, $21
    db   $D0, $C2, $09, $7E, $CD, $87, $3B, $CD
    db   $91, $08, $36, $18, $21, $40, $C3, $09
    db   $CB, $B6, $C3, $8D, $3B, $FE, $10, $20
    db   $16, $3E, $1F, $CD, $25, $3C, $CD, $C7
    db   $50, $CB, $2F, $C6, $02, $21, $D0, $C2
    db   $09, $77, $3E, $18, $CD, $25, $3C, $3E
    db   $01, $CD, $87, $3B, $C9, $CD, $E2, $7C
    db   $CD, $91, $08, $20, $05, $36, $20, $CD
    db   $8D, $3B, $CD, $B4, $3B, $C9, $CD, $91
    db   $08, $20, $03, $CD, $8D, $3B, $CD, $B4
    db   $3B, $C9, $F0, $98, $F5, $F0, $99, $F5
    db   $21, $B0, $C2, $09, $7E, $E0, $98, $21
    db   $C0, $C2, $09, $7E, $E0, $99, $3E, $10
    db   $CD, $25, $3C, $CD, $35, $7D, $C6, $02
    db   $FE, $04, $30, $25, $CD, $45, $7D, $C6
    db   $02, $FE, $04, $30, $1C, $21, $00, $C2
    db   $09, $F0, $98, $77, $21, $10, $C2, $09
    db   $F0, $99, $77, $AF, $CD, $87, $3B, $CD
    db   $8D, $3B, $36, $01, $CD, $91, $08, $36
    db   $20, $F1, $E0, $99, $F1, $E0, $98, $CD
    db   $E2, $7C, $CD, $B4, $3B, $C9, $FF, $00
    db   $FF, $20, $6C, $00, $6C, $20, $64, $20
    db   $62, $20, $68, $20, $66, $20, $60, $00
    db   $60, $20, $66, $00, $68, $00, $62, $00
    db   $64, $00, $66, $40, $68, $40, $60, $40
    db   $60, $60, $68, $60, $66, $60, $11, $18
    db   $52, $CD, $3B, $3C, $F0, $F0, $FE, $03
    db   $D8, $F0, $EE, $21, $B0, $C2, $09, $96
    db   $CB, $2F, $CB, $2F, $E0, $D7, $E0, $D9
    db   $F0, $EC, $21, $C0, $C2, $09, $96, $CB
    db   $2F, $CB, $2F, $E0, $D8, $E0, $DA, $FA
    db   $C0, $C3, $5F, $16, $00, $21, $30, $C0
    db   $19, $E5, $D1, $3E, $03, $E0, $DB, $21
    db   $C0, $C2, $09, $F0, $D8, $86, $12, $13
    db   $21, $B0, $C2, $09, $F0, $D7, $86, $C6
    db   $04, $12, $13, $3E, $6A, $12, $13, $3E
    db   $00, $12, $13, $F0, $D7, $21, $D9, $FF
    db   $86, $E0, $D7, $F0, $D8, $21, $DA, $FF
    db   $86, $E0, $D8, $F0, $DB, $3D, $20, $CD
    db   $3E, $03, $CD, $D0, $3D, $C9, $44, $29
    db   $82, $CB, $64, $C1, $D0, $74, $6A, $36
    db   $5E, $EC, $F5, $9D, $9A, $10, $9C, $10
    db   $74, $00, $76, $00, $FA, $A5, $DB, $A7
    db   $20, $18, $F0, $F6, $FE, $6B, $28, $0C
    db   $FE, $7A, $28, $08, $FE, $8B, $28, $04
    db   $FE, $7B, $20, $06, $FA, $7B, $D8, $E6
    db   $10, $C8, $F0, $F8, $E6, $20, $C2, $7C
    db   $7D, $11, $C2, $52, $FA, $0E, $DB, $FE
    db   $04, $28, $0E, $F0, $F9, $A7, $28, $06
    db   $F0, $EC, $C6, $02, $E0, $EC, $11, $BE
    db   $52, $CD, $3B, $3C, $CD, $91, $08, $20
    db   $1E, $CD, $D5, $3B, $30, $18, $3E, $10
    db   $EA, $68, $D3, $EA, $67, $C1, $F0, $BF
    db   $E0, $B0, $CD, $91, $08, $3E, $68, $77
    db   $EA, $11, $C1, $C3, $3B, $09, $C9, $FE
    db   $10, $20, $1C, $35, $FA, $0E, $DB, $5F
    db   $50, $21, $AF, $52, $19, $7E, $FE, $9D
    db   $28, $04, $FE, $44, $20, $05, $CD, $97
    db   $21, $18, $03, $CD, $85, $21, $AF, $3D
    db   $20, $10, $AF, $EA, $7F, $DB, $EA, $67
    db   $C1, $CD, $9C, $53, $F6, $20, $77, $C3
    db   $7C, $7D, $F0, $98, $21, $00, $C2, $09
    db   $77, $F0, $F6, $FE, $C9, $20, $05, $3E
    db   $04, $EA, $3B, $C1, $21, $3B, $C1, $F0
    db   $99, $86, $21, $10, $C2, $09, $D6, $10
    db   $77, $F0, $A2, $21, $10, $C3, $09, $77
    db   $3E, $6C, $E0, $9D, $3E, $02, $E0, $A1
    db   $3E, $03, $E0, $9E, $AF, $EA, $37, $C1
    db   $EA, $6A, $C1, $EA, $22, $C1, $EA, $21
    db   $C1, $C9, $21, $00, $D8, $F0, $F6, $5F
    db   $FA, $A5, $DB, $57, $F0, $F7, $FE, $1A
    db   $30, $05, $FE, $06, $38, $01, $14, $19
    db   $7E, $C9, $08, $F8, $00, $00, $00, $00
    db   $F8, $08, $50, $00, $50, $20, $52, $00
    db   $52, $20, $50, $40, $50, $60, $52, $40
    db   $52, $60, $54, $00, $56, $00, $58, $00
    db   $5A, $00, $56, $20, $54, $20, $5A, $20
    db   $58, $20, $11, $BC, $53, $CD, $3B, $3C
    db   $CD, $97, $55, $CD, $76, $7C, $21, $10
    db   $C4, $09, $7E, $A7, $28, $0E, $21, $90
    db   $C2, $09, $3E, $01, $77, $E0, $F0, $CD
    db   $91, $08, $36, $40, $CD, $98, $7C, $CD
    db   $E2, $7C, $CD, $1B, $7D, $21, $20, $C3
    db   $09, $35, $21, $10, $C3, $09, $7E, $E6
    db   $80, $E0, $E8, $28, $0B, $70, $21, $20
    db   $C3, $09, $70, $21, $C0, $C2, $09, $70
    db   $CD, $9E, $3B, $F0, $F0, $FE, $02, $CA
    db   $0C, $55, $A7, $28, $60, $CD, $91, $08
    db   $28, $18, $FE, $0A, $20, $0E, $CD, $55
    db   $7D, $21, $80, $C3, $09, $7B, $BE, $20
    db   $03, $CD, $42, $55, $CD, $AF, $3D, $C3
    db   $B1, $54, $CD, $ED, $27, $E6, $1F, $F6
    db   $20, $77, $21, $90, $C2, $09, $36, $00
    db   $21, $B0, $C2, $09, $7E, $3C, $E6, $03
    db   $77, $FE, $00, $20, $05, $CD, $55, $7D
    db   $18, $03, $CD, $ED, $27, $E6, $03, $21
    db   $80, $C3, $09, $77, $5F, $50, $21, $B4
    db   $53, $19, $7E, $21, $40, $C2, $09, $77
    db   $21, $B8, $53, $19, $7E, $21, $50, $C2
    db   $09, $77, $C3, $B1, $54, $21, $A0, $C2
    db   $09, $7E, $E6, $0F, $20, $05, $CD, $91
    db   $08, $20, $11, $CD, $ED, $27, $E6, $0F
    db   $F6, $10, $77, $21, $90, $C2, $09, $36
    db   $01, $CD, $AF, $3D, $CD, $FA, $7B, $21
    db   $00, $C3, $09, $7E, $A7, $20, $4F, $CD
    db   $35, $7D, $C6, $20, $FE, $40, $30, $46
    db   $CD, $45, $7D, $C6, $20, $FE, $40, $30
    db   $3D, $FA, $00, $DB, $FE, $01, $20, $08
    db   $F0, $CC, $E6, $20, $20, $0F, $18, $2E
    db   $FA, $01, $DB, $FE, $01, $20, $27, $F0
    db   $CC, $E6, $10, $28, $21, $CD, $55, $7D
    db   $21, $80, $C3, $09, $7E, $EE, $01, $BB
    db   $28, $14, $21, $20, $C3, $09, $36, $18
    db   $3E, $10, $CD, $25, $3C, $CD, $8D, $3B
    db   $36, $02, $CD, $44, $72, $C9, $CD, $B4
    db   $3B, $C9, $F0, $E7, $1F, $1F, $E6, $01
    db   $21, $C0, $C2, $09, $77, $CD, $55, $7D
    db   $21, $80, $C3, $09, $73, $CD, $FA, $7B
    db   $F0, $E8, $A7, $28, $0A, $CD, $8D, $3B
    db   $36, $01, $CD, $91, $08, $36, $20, $C9
    db   $08, $F8, $00, $00, $00, $00, $F8, $08
    db   $20, $E0, $00, $00, $00, $00, $E0, $20
    db   $3E, $0A, $CD, $01, $3C, $38, $3D, $C5
    db   $21, $B0, $C3, $19, $36, $01, $F0, $D9
    db   $21, $80, $C3, $19, $77, $4F, $21, $32
    db   $55, $09, $F0, $D7, $86, $21, $00, $C2
    db   $19, $77, $21, $36, $55, $09, $F0, $D8
    db   $86, $21, $10, $C2, $19, $77, $21, $3A
    db   $55, $09, $7E, $21, $40, $C2, $19, $77
    db   $21, $3E, $55, $09, $7E, $21, $50, $C2
    db   $19, $77, $C1, $A7, $C9, $00, $FC, $22
    db   $40, $00, $0C, $22, $60, $00, $FC, $22
    db   $00, $00, $0C, $22, $20, $21, $C0, $C2
    db   $09, $7E, $17, $17, $17, $E6, $F8, $5F
    db   $50, $21, $87, $55, $19, $0E, $02, $CD
    db   $26, $3D, $C9, $78, $00, $72, $00, $7A
    db   $00, $72, $00, $70, $00, $72, $00, $7C
    db   $00, $7E, $00, $74, $00, $76, $00, $72
    db   $20, $78, $20, $72, $20, $7A, $20, $72
    db   $20, $70, $20, $7E, $20, $7C, $20, $76
    db   $20, $74, $20, $F0, $F8, $E6, $10, $C2
    db   $7C, $7D, $11, $AD, $55, $21, $80, $C3
    db   $09, $7E, $A7, $20, $03, $11, $C1, $55
    db   $CD, $3B, $3C, $21, $80, $C4, $09, $7E
    db   $A7, $28, $12, $AF, $E0, $F1, $F0, $EC
    db   $D6, $0E, $E0, $EC, $11, $E3, $56, $CD
    db   $3B, $3C, $CD, $BA, $3D, $CD, $76, $7C
    db   $CD, $1B, $7D, $21, $20, $C3, $09, $35
    db   $35, $21, $10, $C3, $09, $7E, $E6, $80
    db   $E0, $E8, $28, $06, $70, $21, $20, $C3
    db   $09, $70, $F0, $F0, $C7

    dw JumpTable_563B_07 ; 00

    db   $AE, $56, $CA, $56, $E7, $56, $2D, $57
    db   $26, $58, $A3, $58, $E8, $58, $5B, $59
    db   $73, $59

JumpTable_563B_07:
    ifNe [$DB56], $01, .else_07_5671

    ld   hl, $C420
    add  hl, bc
    ld   a, [hl]
    and  a
    jr   nz, .else_07_565C

    call toc_07_7D35
    add  a, $18
    cp   $30
    jr   nc, .return_07_5670

    call toc_07_7D45
    add  a, $18
    cp   $30
    jr   nc, .return_07_5670

JumpTable_563B_07.else_07_565C:
    call toc_01_0891
    ld   [hl], $10
    call JumpTable_3B8D_00
    ld   [hl], $05
    ld   a, $60
JumpTable_563B_07.toc_07_5668:
    call toc_01_2185
    assign [$C5AB], $14
JumpTable_563B_07.return_07_5670:
    ret


JumpTable_563B_07.else_07_5671:
    call toc_07_7BD0
    call toc_07_7C23
    jr   nc, .else_07_568E

    ifNe [$DB0E], $04, .else_07_5689

    ld   a, $65
    call .toc_07_5668
    call JumpTable_3B8D_00
    ret


JumpTable_563B_07.else_07_5689:
    ld   a, $61
    call .toc_07_5668
JumpTable_563B_07.else_07_568E:
    ld   a, [hFrameCounter]
    rra
    rra
    rra
    and  %00000001
    call toc_01_3B87
    ld   a, [hFrameCounter]
    and  %00011111
    jr   nz, .return_07_56AD

    call toc_01_27ED
    and  %00000001
    jr   nz, .return_07_56AD

    ld   hl, $C380
    add  hl, bc
    ld   a, [hl]
    xor  $01
    ld   [hl], a
JumpTable_563B_07.return_07_56AD:
    ret


    db   $FA, $9F, $C1, $A7, $20, $15, $CD, $8D
    db   $3B, $FA, $77, $C1, $A7, $20, $06, $CD
    db   $91, $08, $36, $10, $C9, $70, $3E, $61
    db   $CD, $68, $56, $C9, $CD, $91, $08, $20
    db   $0F, $36, $80, $21, $80, $C4, $09, $36
    db   $80, $3E, $01, $E0, $F2, $CD, $8D, $3B
    db   $3E, $02, $E0, $A1, $C9, $9A, $10, $9C
    db   $10, $3E, $03, $CD, $87, $3B, $CD, $91
    db   $08, $20, $0F, $3E, $36, $EA, $68, $D3
    db   $E0, $B0, $CD, $87, $08, $36, $80, $C3
    db   $8D, $3B, $FE, $10, $20, $05, $3E, $62
    db   $CD, $68, $56, $3E, $02, $E0, $A1, $C9
    db   $48, $48, $48, $48, $48, $48, $48, $18
    db   $20, $28, $30, $38, $40, $48, $00, $78
    db   $28, $58, $40, $30, $60, $00, $00, $80
    db   $80, $00, $80, $00, $10, $30, $20, $3E
    db   $02, $E0, $A1, $CD, $8E, $56, $CD, $87
    db   $08, $20, $25, $3E, $02, $E0, $F2, $FA
    db   $7B, $D8, $F6, $10, $EA, $7B, $D8, $3E
    db   $01, $EA, $7F, $DB, $3E, $63, $EA, $68
    db   $C1, $CD, $68, $56, $CD, $8D, $3B, $36
    db   $05, $21, $D0, $C3, $09, $36, $06, $C9
    db   $FE, $01, $20, $09, $3E, $05, $EA, $0E
    db   $DB, $3E, $0D, $E0, $A5, $F0, $E7, $E6
    db   $1F, $20, $4F, $21, $D0, $C2, $09, $7E
    db   $FE, $07, $28, $46, $3E, $AD, $CD, $01
    db   $3C, $38, $3F, $C5, $CD, $44, $72, $21
    db   $D0, $C2, $09, $4E, $34, $21, $0E, $57
    db   $09, $7E, $21, $B0, $C2, $19, $77, $21
    db   $15, $57, $09, $7E, $21, $C0, $C2, $19
    db   $77, $21, $1C, $57, $09, $7E, $21, $00
    db   $C2, $19, $77, $21, $23, $57, $09, $7E
    db   $21, $10, $C2, $19, $77, $21, $90, $C2
    db   $19, $36, $07, $21, $00, $C3, $19, $36
    db   $80, $C1, $CD, $87, $08, $FE, $40, $30
    db   $5E, $F0, $E7, $E6, $3F, $20, $58, $21
    db   $40, $C4, $09, $7E, $FE, $03, $30, $4F
    db   $5F, $50, $34, $21, $2A, $57, $19, $7E
    db   $E0, $CD, $3E, $40, $E0, $CE, $CD, $39
    db   $28, $21, $01, $D6, $FA, $00, $D6, $5F
    db   $C6, $0A, $EA, $00, $D6, $16, $00, $19
    db   $F0, $CF, $22, $F0, $D0, $22, $3E, $81
    db   $22, $3E, $0C, $22, $3E, $1C, $22, $F0
    db   $CF, $22, $F0, $D0, $3C, $22, $3E, $81
    db   $22, $3E, $0D, $22, $3E, $1D, $22, $70
    db   $21, $25, $D7, $36, $DB, $21, $35, $D7
    db   $36, $DB, $21, $45, $D7, $36, $DB, $C9
    db   $CD, $91, $08, $20, $6A, $CD, $8D, $3B
    db   $21, $D0, $C3, $09, $7E, $FE, $05, $38
    db   $23, $CD, $ED, $27, $E6, $0F, $C6, $10
    db   $21, $20, $C3, $09, $77, $1E, $10, $E6
    db   $01, $28, $02, $1E, $F0, $21, $40, $C2
    db   $09, $73, $21, $50, $C2, $09, $36, $F0
    db   $CD, $84, $58, $C9, $21, $20, $C3, $09
    db   $36, $18, $F0, $98, $F5, $F0, $99, $F5
    db   $FA, $54, $D1, $5F, $50, $21, $00, $C2
    db   $19, $7E, $E0, $98, $21, $10, $C2, $19
    db   $7E, $E0, $99, $3E, $14, $CD, $25, $3C
    db   $F1, $E0, $99, $F1, $E0, $98, $21, $40
    db   $C2, $09, $7E, $1E, $00, $E6, $80, $28
    db   $01, $1C, $21, $80, $C3, $09, $73, $CD
    db   $8E, $56, $CD, $8C, $08, $28, $05, $3E
    db   $04, $CD, $87, $3B, $C9, $CD, $E2, $7C
    db   $F0, $EF, $FE, $08, $DA, $7C, $7D, $21
    db   $D0, $C3, $09, $7E, $FE, $05, $30, $03
    db   $CD, $9E, $3B, $F0, $E8, $A7, $28, $24
    db   $CD, $8D, $3B, $36, $05, $21, $D0, $C3
    db   $09, $7E, $FE, $05, $38, $0B, $CD, $91
    db   $08, $36, $10, $CD, $8C, $08, $36, $10
    db   $C9, $CD, $91, $08, $CD, $ED, $27, $E6
    db   $3F, $C6, $30, $77, $3E, $03, $CD, $87
    db   $3B, $C9, $CD, $91, $08, $20, $5D, $F0
    db   $98, $F5, $F0, $99, $F5, $21, $B0, $C2
    db   $09, $7E, $E0, $98, $21, $C0, $C2, $09
    db   $7E, $E0, $99, $21, $00, $C3, $09, $FA
    db   $68, $C1, $B6, $3E, $10, $1E, $10, $20
    db   $04, $3E, $08, $1E, $08, $D5, $CD, $25
    db   $3C, $D1, $21, $20, $C3, $09, $73, $FA
    db   $68, $C1, $A7, $28, $1B, $F0, $D7, $21
    db   $50, $C2, $09, $2F, $3C, $77, $F0, $D8
    db   $21, $40, $C2, $09, $2F, $3C, $77, $F0
    db   $EF, $FE, $90, $38, $03, $CD, $7C, $7D
    db   $F1, $E0, $99, $F1, $E0, $98, $CD, $8D
    db   $3B, $CD, $84, $58, $21, $50, $C2, $09
    db   $7E, $E6, $80, $3E, $02, $28, $02, $3E
    db   $04, $CD, $87, $3B, $C9, $F0, $E8, $A7
    db   $28, $0A, $CD, $91, $08, $36, $08, $CD
    db   $8D, $3B, $35, $35, $3E, $03, $CD, $87
    db   $3B, $CD, $E2, $7C, $C9, $C9, $6A, $00
    db   $6A, $20, $68, $00, $68, $20, $11, $74
    db   $59, $CD, $3B, $3C, $CD, $76, $7C, $CD
    db   $98, $7C, $CD, $B4, $3B, $CD, $E2, $7C
    db   $CD, $9E, $3B, $21, $70, $C4, $09, $7E
    db   $A7, $20, $14, $21, $80, $C4, $09, $36
    db   $10, $F0, $EE, $21, $00, $C2, $09, $77
    db   $F0, $EF, $21, $10, $C2, $09, $77, $AF
    db   $CD, $87, $3B, $F0, $F0, $C7

    dw JumpTable_59B8_07 ; 00

    db   $FD, $59

JumpTable_59B8_07:
    call toc_01_0891
    jr   nz, .else_07_59DB

    call toc_07_7D45
    ld   a, e
    cp   $03
    jr   z, .else_07_59DB

    call toc_01_3DAF
    call toc_01_0891
    ld   [hl], $25
    call toc_07_7D35
    ld   hl, $C380
    add  hl, bc
    ld   [hl], e
    call JumpTable_3B8D_00
    ld   [hl], $01
    ret


JumpTable_59B8_07.else_07_59DB:
    ld   hl, $C250
    add  hl, bc
    ld   a, [hl]
    sub  a, $04
    jr   z, .else_07_59EB

    and  %10000000
    jr   z, .else_07_59EA

    inc  [hl]
    inc  [hl]
JumpTable_59B8_07.else_07_59EA:
    dec  [hl]
JumpTable_59B8_07.else_07_59EB:
    ld   hl, $C240
    add  hl, bc
    ld   a, [hl]
    and  a
    jr   z, .return_07_59FA

    and  %10000000
    jr   z, .else_07_59F9

    inc  [hl]
    inc  [hl]
JumpTable_59B8_07.else_07_59F9:
    dec  [hl]
JumpTable_59B8_07.return_07_59FA:
    ret


    db   $01, $FF, $CD, $91, $08, $20, $07, $36
    db   $40, $CD, $8D, $3B, $70, $C9, $F0, $E7
    db   $E6, $01, $20, $16, $21, $50, $C2, $09
    db   $35, $21, $80, $C3, $09, $5E, $50, $21
    db   $FB, $59, $19, $7E, $21, $40, $C2, $09
    db   $86, $77, $3E, $01, $CD, $87, $3B, $C9
    db   $F0, $F1, $3C, $28, $4A, $E5, $FA, $C0
    db   $C3, $5F, $16, $00, $21, $30, $C0, $19
    db   $E5, $D1, $E1, $F0, $EC, $86, $FE, $7E
    db   $38, $01, $AF, $12, $23, $13, $C5, $FA
    db   $55, $C1, $4F, $F0, $EE, $86, $91, $12
    db   $23, $13, $F0, $F5, $4F, $2A, $F5, $81
    db   $12, $F1, $FE, $FF, $20, $04, $1B, $AF
    db   $12, $13, $C1, $13, $F0, $ED, $AE, $23
    db   $12, $13, $0D, $20, $CE, $FA, $23, $C1
    db   $4F, $3E, $0A, $CD, $D0, $3D, $C9, $FA
    db   $23, $C1, $4F, $C9, $00, $00, $4C, $00
    db   $00, $08, $4C, $20, $F0, $00, $4A, $00
    db   $F0, $08, $4A, $20, $E0, $00, $4A, $00
    db   $E0, $08, $4A, $20, $D0, $00, $4A, $00
    db   $D0, $08, $4A, $20, $C0, $00, $48, $00
    db   $C0, $08, $48, $20, $00, $00, $4A, $00
    db   $00, $08, $4A, $20, $F0, $00, $4A, $00
    db   $F0, $08, $4A, $20, $E0, $00, $4A, $00
    db   $E0, $08, $4A, $20, $D0, $00, $48, $00
    db   $D0, $08, $48, $20, $C0, $00, $FF, $00
    db   $C0, $08, $FF, $20, $00, $00, $4A, $00
    db   $00, $08, $4A, $20, $F0, $00, $4A, $00
    db   $F0, $08, $4A, $20, $E0, $00, $48, $00
    db   $E0, $08, $48, $20, $D0, $00, $FF, $00
    db   $D0, $08, $FF, $20, $C0, $00, $FF, $00
    db   $C0, $08, $FF, $20, $00, $00, $4A, $00
    db   $00, $08, $4A, $20, $F0, $00, $48, $00
    db   $F0, $08, $48, $20, $E0, $00, $FF, $00
    db   $E0, $08, $FF, $20, $D0, $00, $FF, $00
    db   $D0, $08, $FF, $20, $C0, $00, $FF, $00
    db   $C0, $08, $FF, $20, $00, $00, $48, $00
    db   $00, $08, $48, $20, $F0, $00, $FF, $00
    db   $F0, $08, $FF, $20, $E0, $00, $FF, $00
    db   $E0, $08, $FF, $20, $D0, $00, $FF, $00
    db   $D0, $08, $FF, $20, $C0, $00, $FF, $00
    db   $C0, $08, $FF, $20, $21, $B0, $C2, $09
    db   $7E, $FE, $02, $CA, $28, $5D, $A7, $C2
    db   $C8, $5C, $F0, $F8, $E6, $20, $C2, $7C
    db   $7D, $FA, $24, $C1, $A7, $20, $0A, $21
    db   $E0, $C3, $09, $F0, $F6, $BE, $C2, $7C
    db   $7D, $F0, $F1, $FE, $05, $30, $17, $17
    db   $17, $E6, $FC, $CB, $27, $5F, $CB, $27
    db   $CB, $27, $83, $5F, $50, $21, $7F, $5A
    db   $19, $0E, $0A, $CD, $2B, $5A, $CD, $E2
    db   $08, $CD, $EB, $3B, $CD, $D0, $7B, $F0
    db   $F0, $C7

    dw JumpTable_5BA1_07 ; 00

    db   $A2, $5B, $BA, $5B, $3D, $5C, $6B, $5C
    db   $8C, $5C

JumpTable_5BA1_07:
    ret


    db   $CD, $63, $5C, $CD, $91, $08, $20, $03
    db   $C3, $8D, $3B, $1E, $00, $E6, $04, $28
    db   $02, $1E, $02, $7B, $EA, $55, $C1, $C9
    db   $CD, $63, $5C, $F0, $E7, $CD, $AD, $5B
    db   $F0, $E7, $E6, $1F, $20, $16, $21, $B0
    db   $C3, $09, $7E, $3C, $77, $FE, $05, $CA
    db   $1E, $5C, $CD, $ED, $27, $E6, $03, $28
    db   $03, $CD, $DE, $5C, $F0, $E7, $E6, $03
    db   $20, $39, $3E, $A7, $CD, $01, $3C, $38
    db   $32, $CD, $ED, $27, $E6, $07, $D6, $04
    db   $21, $D8, $FF, $86, $21, $10, $C2, $19
    db   $77, $CD, $ED, $27, $E6, $1F, $D6, $10
    db   $21, $D7, $FF, $86, $21, $00, $C2, $19
    db   $77, $21, $40, $C3, $19, $36, $C2, $21
    db   $E0, $C2, $19, $36, $10, $21, $B0, $C2
    db   $19, $36, $01, $C9, $3E, $00, $EA, $55
    db   $C1, $FA, $72, $DB, $3C, $EA, $72, $DB
    db   $FE, $04, $38, $09, $CD, $91, $08, $36
    db   $20, $CD, $8D, $3B, $C9, $CD, $97, $6D
    db   $C3, $7C, $7D, $CD, $91, $08, $20, $15
    db   $36, $20, $3E, $08, $EA, $95, $DB, $AF
    db   $EA, $6B, $C1, $EA, $6C, $C1, $EA, $96
    db   $DB, $CD, $8D, $3B, $C9, $1E, $00, $E6
    db   $04, $28, $02, $1E, $02, $7B, $EA, $55
    db   $C1, $3E, $02, $E0, $A1, $EA, $11, $C1
    db   $C9, $AF, $EA, $55, $C1, $CD, $91, $08
    db   $20, $0C, $CD, $97, $6D, $21, $6B, $DB
    db   $CB, $D6, $CD, $7C, $7D, $C9, $CD, $63
    db   $5C, $C9, $00, $02, $04, $06, $06, $04
    db   $02, $00, $AF, $EA, $56, $C1, $CD, $91
    db   $08, $20, $03, $C3, $7C, $7D, $F5, $E6
    db   $07, $5F, $50, $21, $84, $5C, $19, $7E
    db   $EA, $56, $C1, $F1, $FE, $20, $30, $08
    db   $E6, $03, $20, $04, $CD, $DE, $5C, $AF
    db   $FE, $40, $38, $09, $E6, $07, $20, $05
    db   $21, $F4, $FF, $36, $0C, $C9, $30, $00
    db   $30, $20, $32, $00, $32, $20, $11, $C0
    db   $5C, $CD, $3B, $3C, $CD, $91, $08, $CA
    db   $7C, $7D, $FE, $04, $20, $05, $3E, $01
    db   $CD, $87, $3B, $C9, $3E, $A7, $CD, $01
    db   $3C, $38, $32, $21, $B0, $C2, $19, $36
    db   $02, $21, $40, $C3, $19, $36, $D1, $21
    db   $10, $C3, $19, $36, $70, $CD, $ED, $27
    db   $E6, $3F, $D6, $20, $21, $D7, $FF, $86
    db   $21, $00, $C2, $19, $77, $CD, $ED, $27
    db   $E6, $3F, $D6, $20, $21, $D8, $FF, $86
    db   $21, $10, $C2, $19, $77, $C9, $16, $00
    db   $16, $20, $18, $10, $0C, $08, $0C, $F4
    db   $0C, $F4, $F4, $F4, $0C, $0C, $F0, $EC
    db   $C6, $08, $E0, $EC, $11, $18, $5D, $CD
    db   $D0, $3C, $CD, $E2, $7C, $CD, $1B, $7D
    db   $21, $20, $C3, $09, $35, $35, $21, $10
    db   $C3, $09, $7E, $E6, $80, $28, $39, $70
    db   $21, $90, $C2, $09, $7E, $34, $FE, $04
    db   $CA, $7C, $7D, $5F, $50, $21, $1C, $5D
    db   $19, $7E, $21, $20, $C3, $09, $77, $CD
    db   $ED, $27, $E6, $03, $5F, $50, $21, $20
    db   $5D, $19, $7E, $21, $40, $C2, $09, $77
    db   $21, $24, $5D, $19, $7E, $21, $50, $C2
    db   $09, $77, $7B, $E6, $01, $CD, $87, $3B
    db   $C9, $4E, $00, $4E, $20, $F0, $EA, $FE
    db   $07, $20, $1D, $FA, $1C, $C1, $FE, $05
    db   $20, $05, $3E, $10, $EA, $AE, $C5, $F0
    db   $F6, $21, $E0, $C3, $09, $77, $21, $20
    db   $C2, $09, $70, $21, $30, $C2, $09, $70
    db   $11, $83, $5D, $CD, $3B, $3C, $FA, $24
    db   $C1, $A7, $C0, $F0, $F6, $EA, $6F, $DB
    db   $F0, $EE, $EA, $70, $DB, $F0, $EF, $EA
    db   $71, $DB, $FA, $9F, $C1, $A7, $C0, $F0
    db   $EA, $FE, $02, $C8, $CD, $E2, $08, $CD
    db   $EB, $3B, $CD, $E2, $7C, $CD, $1B, $7D
    db   $21, $20, $C3, $09, $35, $35, $21, $10
    db   $C3, $09, $7E, $E0, $E9, $E6, $80, $E0
    db   $E8, $28, $23, $70, $21, $20, $C3, $09
    db   $7E, $CB, $2F, $2F, $FE, $07, $38, $08
    db   $F5, $3E, $17, $E0, $F4, $F1, $18, $01
    db   $AF, $77, $21, $40, $C2, $09, $CB, $2E
    db   $21, $50, $C2, $09, $CB, $2E, $21, $10
    db   $C4, $09, $36, $03, $1E, $03, $7B, $E0
    db   $ED, $21, $10, $C2, $09, $7E, $83, $77
    db   $F0, $EF, $83, $E0, $EF, $CD, $9E, $3B
    db   $F0, $ED, $5F, $21, $10, $C2, $09, $7E
    db   $93, $77, $F0, $EF, $93, $E0, $EF, $F0
    db   $F0, $C7

    dw JumpTable_5E42_07 ; 00

    db   $B5, $5E, $B6, $5E

JumpTable_5E42_07:
    ld   a, [$FFE9]
    dec  a
    and  %10000000
    jr   z, .else_07_5E5E

    ld   hl, $C250
    call .toc_07_5E52
    ld   hl, $C240
JumpTable_5E42_07.toc_07_5E52:
    add  hl, bc
    ld   a, [hl]
    and  a
    jr   z, .else_07_5E5E

    and  %10000000
    jr   z, .else_07_5E5D

    inc  [hl]
    inc  [hl]
JumpTable_5E42_07.else_07_5E5D:
    dec  [hl]
JumpTable_5E42_07.else_07_5E5E:
    call toc_01_3BD5
    jr   nc, .return_07_5EB4

    ld   a, [$C19B]
    and  a
    jr   nz, .return_07_5EB4

    ifNe [$DB00], $03, .else_07_5E78

    ld   a, [$FFCC]
    and  %00100000
    jr   nz, .else_07_5E85

    jr   .return_07_5EB4

JumpTable_5E42_07.else_07_5E78:
    ifNe [$DB01], $03, .return_07_5EB4

    ld   a, [$FFCC]
    and  %00010000
    jr   z, .return_07_5EB4

JumpTable_5E42_07.else_07_5E85:
    ld   a, [$C3CF]
    and  a
    jr   nz, .return_07_5EB4

    inc  a
    ld   [$C3CF], a
    ifEq [$FFEA], $07, .return_07_5EB4

    call JumpTable_3B8D_00
    ld   [hl], $02
    ld   hl, $C280
    add  hl, bc
    ld   [hl], $07
    ld   hl, $C490
    add  hl, bc
    ld   [hl], b
    copyFromTo [hLinkDirection], [$C15D]
    call toc_01_0891
    ld   [hl], $02
    ld   hl, $FFF3
    ld   [hl], $02
JumpTable_5E42_07.return_07_5EB4:
    ret


    db   $C9, $F0, $E8, $A7, $20, $20, $21, $A0
    db   $C2, $09, $7E, $A7, $28, $23, $3E, $07
    db   $E0, $F2, $21, $40, $C2, $09, $7E, $2F
    db   $3C, $CB, $2F, $77, $21, $50, $C2, $09
    db   $7E, $2F, $3C, $CB, $2F, $77, $21, $D0
    db   $C5, $09, $36, $FF, $CD, $8D, $3B, $70
    db   $C9, $CD, $76, $7C, $3E, $0B, $EA, $9E
    db   $C1, $CD, $F6, $3B, $1E, $0F, $50, $21
    db   $80, $C2, $19, $7E, $A7, $28, $0E, $21
    db   $A0, $C3, $19, $7E, $FE, $A7, $20, $05
    db   $D5, $CD, $11, $5F, $D1, $1D, $7B, $FE
    db   $FF, $20, $E4, $C9, $CD, $91, $08, $20
    db   $39, $21, $00, $C2, $19, $F0, $EE, $96
    db   $C6, $10, $FE, $20, $30, $2C, $21, $10
    db   $C2, $19, $F0, $EC, $96, $C6, $18, $FE
    db   $28, $30, $1F, $CD, $C3, $5E, $3E, $25
    db   $E0, $F4, $3E, $0B, $E0, $F2, $CD, $91
    db   $08, $36, $10, $21, $90, $C2, $19, $7E
    db   $A7, $20, $07, $34, $21, $E0, $C2, $19
    db   $36, $50, $C9, $50, $00, $50, $20, $11
    db   $50, $5F, $CD, $3B, $3C, $CD, $76, $7C
    db   $CD, $03, $61, $21, $D0, $C2, $09, $7E
    db   $5F, $A7, $20, $13, $21, $C0, $C2, $09
    db   $7E, $A7, $28, $5C, $CD, $81, $60, $21
    db   $D0, $C2, $19, $36, $F0, $1E, $10, $F0
    db   $E7, $E6, $01, $20, $0F, $21, $50, $C2
    db   $09, $7E, $93, $28, $07, $E6, $80, $28
    db   $02, $34, $34, $35, $21, $50, $C3, $09
    db   $36, $02, $21, $50, $C2, $09, $7E, $E5
    db   $F5, $73, $21, $10, $C2, $09, $7E, $E5
    db   $F5, $CD, $9E, $3B, $F1, $E1, $77, $F1
    db   $E1, $77, $21, $50, $C3, $09, $36, $30
    db   $21, $A0, $C2, $09, $7E, $A7, $28, $0E
    db   $21, $50, $C2, $09, $70, $CD, $81, $60
    db   $21, $50, $C2, $19, $36, $00, $18, $18
    db   $21, $50, $C2, $09, $7E, $A7, $28, $07
    db   $E6, $80, $28, $02, $34, $34, $35, $CD
    db   $81, $60, $21, $D0, $C2, $19, $36, $00
    db   $F0, $EF, $E6, $0F, $FE, $00, $20, $5A
    db   $F0, $EF, $D6, $10, $E0, $CD, $E6, $F0
    db   $5F, $F0, $EE, $D6, $08, $E0, $CE, $CB
    db   $37, $E6, $0F, $B3, $5F, $50, $21, $50
    db   $C2, $09, $7E, $A7, $28, $3C, $E6, $80
    db   $20, $39, $21, $11, $D7, $19, $36, $4D
    db   $CD, $39, $28, $21, $01, $D6, $FA, $00
    db   $D6, $5F, $C6, $0A, $EA, $00, $D6, $16
    db   $00, $19, $F0, $CF, $22, $F0, $D0, $22
    db   $3E, $81, $22, $3E, $44, $22, $3E, $54
    db   $22, $F0, $CF, $22, $F0, $D0, $3C, $22
    db   $3E, $81, $22, $3E, $45, $22, $3E, $55
    db   $22, $70, $C9, $21, $11, $D7, $19, $36
    db   $04, $CD, $39, $28, $21, $01, $D6, $FA
    db   $00, $D6, $5F, $C6, $0A, $EA, $00, $D6
    db   $16, $00, $19, $F0, $CF, $22, $F0, $D0
    db   $22, $3E, $81, $22, $3E, $7E, $22, $3E
    db   $7E, $22, $F0, $CF, $22, $F0, $D0, $3C
    db   $22, $3E, $81, $22, $3E, $7E, $22, $3E
    db   $7E, $22, $70, $C9, $21, $60, $C4, $09
    db   $7E, $EE, $01, $E0, $D7, $58, $50, $21
    db   $80, $C2, $19, $7E, $A7, $28, $12, $21
    db   $A0, $C3, $19, $7E, $FE, $A6, $20, $09
    db   $21, $60, $C4, $19, $F0, $D7, $BE, $28
    db   $06, $1C, $7B, $FE, $10, $20, $E0, $C9
    db   $00, $00, $50, $00, $00, $08, $52, $00
    db   $00, $10, $52, $20, $00, $18, $50, $20
    db   $21, $AD, $60, $0E, $04, $CD, $26, $3D
    db   $CD, $76, $7C, $CD, $91, $08, $5F, $21
    db   $D0, $C3, $09, $34, $7E, $E6, $03, $B3
    db   $20, $2C, $F0, $EB, $FE, $A4, $CA, $60
    db   $61, $21, $B0, $C2, $09, $5E, $50, $21
    db   $5C, $61, $19, $7E, $21, $40, $C2, $09
    db   $86, $77, $21, $5E, $61, $19, $BE, $20
    db   $0D, $21, $B0, $C2, $09, $7E, $EE, $01
    db   $77, $CD, $91, $08, $36, $6A, $21, $C0
    db   $C2, $09, $70, $F0, $EE, $F5, $CD, $E2
    db   $7C, $F1, $5F, $21, $00, $C2, $09, $7E
    db   $93, $E0, $E8, $CD, $9E, $3B, $CD, $D5
    db   $3B, $30, $3B, $F0, $9B, $E6, $80, $20
    db   $35, $CD, $45, $7D, $C6, $08, $CB, $7F
    db   $28, $2C, $21, $10, $C2, $09, $7E, $D6
    db   $10, $E0, $99, $F0, $9A, $F5, $F0, $E8
    db   $E0, $9A, $21, $98, $FF, $86, $77, $C5
    db   $CD, $49, $3E, $C1, $F1, $E0, $9A, $3E
    db   $02, $E0, $9B, $3E, $01, $EA, $47, $C1
    db   $21, $C0, $C2, $09, $36, $10, $C9, $01
    db   $FF, $06, $FA, $21, $B0, $C2, $09, $5E
    db   $50, $21, $5C, $61, $19, $7E, $21, $50
    db   $C2, $09, $86, $77, $21, $5E, $61, $19
    db   $BE, $20, $0D, $21, $B0, $C2, $09, $7E
    db   $EE, $01, $77, $CD, $91, $08, $36, $6A
    db   $C3, $03, $61, $00, $00, $50, $00, $00
    db   $08, $52, $00, $00, $10, $52, $20, $00
    db   $18, $50, $20, $CD, $8C, $08, $28, $04
    db   $3E, $04, $E0, $F5, $21, $88, $61, $0E
    db   $04, $CD, $26, $3D, $CD, $76, $7C, $CD
    db   $03, $61, $21, $C0, $C2, $09, $7E, $A7
    db   $28, $39, $1E, $04, $F0, $F6, $FE, $3B
    db   $28, $0D, $CD, $8C, $08, $36, $08, $FA
    db   $CF, $C3, $A7, $28, $26, $1E, $04, $21
    db   $40, $C4, $09, $7E, $FE, $04, $28, $09
    db   $34, $FE, $03, $20, $04, $3E, $11, $E0
    db   $F4, $F0, $E7, $E6, $03, $20, $0B, $21
    db   $50, $C2, $09, $7E, $93, $E6, $80, $28
    db   $01, $34, $C9, $21, $50, $C2, $09, $70
    db   $21, $40, $C4, $09, $70, $C9, $21, $F0
    db   $C3, $09, $70, $21, $00, $C4, $09, $70
    db   $CD, $31, $63, $CD, $76, $7C, $21, $C0
    db   $C2, $09, $7E, $A7, $20, $08, $34, $F0
    db   $EF, $21, $B0, $C2, $09, $77, $CD, $98
    db   $7C, $F0, $F0, $C7

    dw JumpTable_6229_07 ; 00

    db   $4D, $62, $7A, $62, $A3, $62

JumpTable_6229_07:
    call toc_01_0891
    jr   nz, .return_07_623C

    ld   [hl], $40
    call toc_07_7D35
    add  a, $10
    cp   $20
    jr   c, .return_07_623C

    call JumpTable_3B8D_00
JumpTable_6229_07.return_07_623C:
    ret


    db   $04, $04, $03, $02, $01, $00, $00, $00
    db   $E0, $E0, $E8, $F0, $00, $00, $00, $00
    db   $CD, $B4, $3B, $CD, $91, $08, $20, $06
    db   $36, $80, $CD, $8D, $3B, $C9, $1F, $1F
    db   $1F, $E6, $07, $5F, $50, $21, $3D, $62
    db   $19, $7E, $CD, $87, $3B, $21, $45, $62
    db   $19, $7E, $21, $B0, $C2, $09, $86, $21
    db   $10, $C2, $09, $77, $C9, $CD, $B4, $3B
    db   $CD, $91, $08, $20, $05, $36, $40, $CD
    db   $8D, $3B, $1E, $04, $E6, $10, $20, $01
    db   $1C, $7B, $CD, $87, $3B, $C9, $00, $00
    db   $00, $00, $01, $02, $03, $05, $00, $00
    db   $00, $00, $00, $F0, $E8, $E0, $CD, $B4
    db   $3B, $CD, $91, $08, $20, $07, $36, $40
    db   $CD, $8D, $3B, $70, $C9, $1F, $1F, $1F
    db   $E6, $07, $5F, $50, $21, $93, $62, $19
    db   $7E, $CD, $87, $3B, $21, $9B, $62, $19
    db   $7E, $21, $B0, $C2, $09, $86, $21, $10
    db   $C2, $09, $77, $C9, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $F0, $00, $74, $00
    db   $F0, $08, $74, $20, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $00, $00, $70, $00
    db   $00, $08, $70, $20, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $F8, $00, $74, $00
    db   $F8, $08, $74, $20, $08, $00, $76, $00
    db   $08, $08, $76, $20, $00, $00, $70, $00
    db   $00, $08, $70, $20, $10, $00, $72, $00
    db   $10, $08, $72, $20, $00, $00, $78, $00
    db   $00, $08, $78, $20, $10, $00, $72, $00
    db   $10, $08, $72, $20, $F0, $F1, $17, $17
    db   $17, $17, $E6, $F0, $5F, $50, $21, $D1
    db   $62, $19, $0E, $04, $CD, $26, $3D, $C9
    db   $98, $00, $53, $7F, $98, $20, $53, $7F
    db   $98, $40, $53, $7F, $98, $60, $53, $7F
    db   $98, $80, $53, $7F, $98, $A0, $53, $7F
    db   $98, $C0, $53, $7F, $98, $E0, $53, $7F
    db   $99, $00, $53, $7F, $99, $20, $53, $7F
    db   $99, $40, $53, $7F, $99, $60, $53, $7F
    db   $99, $80, $53, $7F, $99, $A0, $53, $7F
    db   $99, $C0, $53, $7F, $99, $E0, $53, $7F
    db   $9A, $00, $53, $7F, $9A, $20, $53, $7F
    db   $AF, $E0, $96, $E0, $97, $EA, $2F, $C1
    db   $EA, $2E, $C1, $21, $FD, $D6, $CB, $AE
    db   $21, $D0, $C3, $09, $7E, $FE, $09, $28
    db   $2C, $FA, $00, $D6, $5F, $C6, $08, $EA
    db   $00, $D6, $50, $C5, $21, $D0, $C3, $09
    db   $4E, $34, $CB, $21, $CB, $21, $CB, $21
    db   $21, $45, $63, $09, $E5, $C1, $21, $01
    db   $D6, $19, $1E, $08, $0A, $03, $22, $1D
    db   $20, $FA, $70, $C1, $C9, $CD, $91, $08
    db   $C0, $F0, $F7, $C6, $50, $CD, $85, $21
    db   $3E, $E4, $EA, $97, $DB, $C3, $7C, $7D
    db   $4A, $00, $4C, $00, $4C, $20, $4A, $20
    db   $4E, $00, $4E, $20, $21, $B0, $C2, $09
    db   $7E, $A7, $C2, $8D, $63, $11, $E5, $63
    db   $CD, $3B, $3C, $CD, $76, $7C, $CD, $98
    db   $7C, $F0, $F9, $A7, $C2, $AD, $64, $F0
    db   $F0, $C7

    dw JumpTable_641D_07 ; 00

    db   $61, $64, $84, $64, $08, $F8, $00, $00
    db   $00, $00, $F8, $08

JumpTable_641D_07:
    call toc_01_3BEB
    call toc_07_650E
    call toc_01_0891
    jr   nz, .else_07_645F

    call toc_01_27ED
    and  %00111111
    add  a, $30
    ld   [hl], a
    ld   hl, $C3D0
    add  hl, bc
    ld   a, [hl]
    inc  a
    ld   [hl], a
    cp   $04
    jr   nz, .else_07_6441

    ld   [hl], b
    call toc_07_7D55
    jr   .toc_07_6447

JumpTable_641D_07.else_07_6441:
    call toc_01_27ED
    and  %00000011
    ld   e, a
JumpTable_641D_07.toc_07_6447:
    ld   d, b
    ld   hl, $6415
    add  hl, de
    ld   a, [hl]
    ld   hl, $C240
    add  hl, bc
    ld   [hl], a
    ld   hl, $6419
    add  hl, de
    ld   a, [hl]
    ld   hl, $C250
    add  hl, bc
    ld   [hl], a
    call JumpTable_3B8D_00
JumpTable_641D_07.else_07_645F:
    jr   toc_07_6478

    db   $CD, $EB, $3B, $CD, $0E, $65, $CD, $91
    db   $08, $20, $06, $36, $20, $CD, $8D, $3B
    db   $70, $CD, $E2, $7C, $CD, $9E, $3B

toc_07_6478:
    ld   a, [hFrameCounter]
    rra
    rra
    rra
    rra
    and  %00000001
    call toc_01_3B87
    ret


    db   $21, $40, $C3, $09, $36, $C2, $CD, $91
    db   $08, $20, $18, $21, $E0, $C4, $09, $36
    db   $2D, $21, $80, $C4, $09, $36, $0C, $21
    db   $80, $C2, $09, $36, $01, $21, $40, $C3
    db   $09, $36, $04, $3E, $02, $CD, $87, $3B
    db   $C9, $F0, $F0, $FE, $02, $28, $D1, $CD
    db   $EB, $3B, $CD, $1A, $65, $F0, $F0, $C7

    dw JumpTable_64C0_07 ; 00

    db   $D2, $64

JumpTable_64C0_07:
    call toc_07_7D35
    ld   a, $08
    dec  e
    jr   nz, .else_07_64CA

    ld   a, $F8
JumpTable_64C0_07.else_07_64CA:
    ld   hl, $C240
    add  hl, bc
    ld   [hl], a
    jp   JumpTable_3B8D_00

    db   $CD, $E2, $7C, $21, $50, $C2, $09, $34
    db   $34, $CD, $9E, $3B, $21, $A0, $C2, $09
    db   $7E, $E6, $03, $28, $08, $21, $40, $C2
    db   $09, $7E, $2F, $3C, $77, $21, $A0, $C2
    db   $09, $7E, $E6, $08, $28, $12, $21, $10
    db   $C2, $09, $7E, $E6, $F0, $C6, $03, $77
    db   $21, $50, $C2, $09, $70, $C3, $78, $64
    db   $AF, $C3, $87, $3B

toc_07_650E:
    ld   a, [hLinkPositionZHigh]
    and  a
    jp   z, toc_01_3BD5

    cp   $08
    jp   c, toc_01_3BD5

    ret


    db   $C3, $D5, $3B, $40, $00, $40, $20, $42
    db   $00, $42, $20, $11, $1D, $65, $CD, $3B
    db   $3C, $CD, $76, $7C, $CD, $98, $7C, $CD
    db   $B4, $3B, $CD, $E2, $7C, $CD, $1B, $7D
    db   $CD, $9E, $3B, $21, $50, $C3, $09, $CB
    db   $FE, $21, $30, $C4, $09, $CB, $F6, $F0
    db   $F0, $C7

    dw JumpTable_6552_07 ; 00

    db   $AD, $65, $F5, $65

JumpTable_6552_07:
    ld   hl, $C310
    add  hl, bc
    ld   a, [hl]
    and  a
    jr   z, .else_07_6563

    ld   a, [hFrameCounter]
    and  %00000111
    jr   nz, .else_07_656F

    dec  [hl]
    jr   .else_07_656F

JumpTable_6552_07.else_07_6563:
    ld   hl, $C350
    add  hl, bc
    res  7, [hl]
    ld   hl, $C430
    add  hl, bc
    res  6, [hl]
JumpTable_6552_07.else_07_656F:
    ld   a, [hFrameCounter]
    and  %00000111
    jr   nz, .else_07_6593

    ld   hl, $C240
    add  hl, bc
    ld   a, [hl]
    and  a
    jr   z, .else_07_6584

    and  %10000000
    jr   z, .else_07_6583

    inc  [hl]
    inc  [hl]
JumpTable_6552_07.else_07_6583:
    dec  [hl]
JumpTable_6552_07.else_07_6584:
    ld   hl, $C250
    add  hl, bc
    ld   a, [hl]
    and  a
    jr   z, .else_07_6593

    and  %10000000
    jr   z, .else_07_6592

    inc  [hl]
    inc  [hl]
JumpTable_6552_07.else_07_6592:
    dec  [hl]
JumpTable_6552_07.else_07_6593:
    call toc_01_0887
    jr   nz, .else_07_659B

    call JumpTable_3B8D_00
JumpTable_6552_07.else_07_659B:
    ld   hl, $C2B0
    add  hl, bc
    ld   a, [hl]
    and  a
    jr   z, .else_07_65AA

    ld   a, [hFrameCounter]
    and  %00011111
    jr   nz, .else_07_65AA

    dec  [hl]
JumpTable_6552_07.else_07_65AA:
    jp   toc_07_65CB

    db   $21, $B0, $C2, $09, $7E, $FE, $08, $38
    db   $0E, $CD, $87, $08, $CD, $ED, $27, $E6
    db   $1F, $C6, $80, $77, $C3, $8D, $3B, $F0
    db   $E7, $E6, $0F, $20, $01, $34

toc_07_65CB:
    ld   hl, $C2B0
    add  hl, bc
    ld   a, [hl]
    ld   hl, $C3D0
    add  hl, bc
    add  a, [hl]
    ld   [hl], a
    rra
    rra
    rra
    rra
    rra
    and  %00000001
    call toc_01_3B87
    ret


    db   $00, $05, $0A, $0D, $0E, $0D, $0A, $05
    db   $00, $FB, $F6, $F3, $F2, $F3, $F6, $FB
    db   $00, $05, $0A, $0D, $CD, $CB, $65, $21
    db   $10, $C3, $09, $7E, $FE, $10, $28, $08
    db   $F0, $E7, $E6, $07, $20, $01, $34, $C9
    db   $CD, $87, $08, $20, $06, $36, $60, $CD
    db   $8D, $3B, $70, $21, $D0, $C2, $09, $34
    db   $7E, $FE, $18, $38, $3E, $70, $21, $C0
    db   $C2, $09, $7E, $21, $40, $C4, $09, $86
    db   $E6, $0F, $77, $21, $40, $C4, $09, $5E
    db   $50, $21, $E1, $65, $19, $7E, $CB, $2F
    db   $21, $50, $C2, $09, $77, $21, $E5, $65
    db   $19, $7E, $CB, $2F, $21, $40, $C2, $09
    db   $77, $CD, $ED, $27, $E6, $07, $20, $0B
    db   $CD, $ED, $27, $E6, $02, $3D, $21, $C0
    db   $C2, $09, $77, $C9, $44, $00, $46, $00
    db   $44, $00, $48, $00, $46, $20, $44, $20
    db   $48, $20, $44, $20, $21, $80, $C3, $09
    db   $F0, $F1, $86, $E0, $F1, $11, $5D, $66
    db   $CD, $3B, $3C, $CD, $76, $7C, $CD, $98
    db   $7C, $CD, $B4, $3B, $CD, $E2, $7C, $CD
    db   $9E, $3B, $21, $A0, $C2, $09, $7E, $A7
    db   $28, $0E, $CD, $8D, $3B, $70, $CD, $91
    db   $08, $36, $08, $CD, $8C, $08, $36, $20
    db   $F0, $F0, $C7

    dw JumpTable_66B6_07 ; 00

    db   $F8, $66, $4B, $67, $08, $F8, $00, $00
    db   $00, $00, $F8, $08, $02, $00, $FF, $FF

JumpTable_66B6_07:
    call toc_01_0891
    jr   nz, .else_07_66F0

    call JumpTable_3B8D_00
    call toc_01_0891
    call toc_01_27ED
    and  %00011111
    add  a, $30
    ld   [hl], a
    and  %00000011
    ld   e, a
JumpTable_66B6_07.toc_07_66CC:
    ld   d, b
    ld   hl, $66AA
    add  hl, de
    ld   a, [hl]
    ld   hl, $C240
    add  hl, bc
    ld   [hl], a
    ld   hl, $66AE
    add  hl, de
    ld   a, [hl]
    ld   hl, $C250
    add  hl, bc
    ld   [hl], a
    ld   hl, $66B2
    add  hl, de
    ld   a, [hl]
    cp   $FF
    jr   z, .return_07_66EF

    ld   hl, $C380
    add  hl, bc
    ld   [hl], a
JumpTable_66B6_07.return_07_66EF:
    ret


JumpTable_66B6_07.else_07_66F0:
    call toc_01_3DAF
    call toc_07_6711
    jr   toc_07_6706

    db   $CD, $91, $08, $20, $06, $36, $18, $CD
    db   $8D, $3B, $70, $CD, $11, $67

toc_07_6706:
    ld   a, [hFrameCounter]
    rra
    rra
    rra
    and  %00000001
    call toc_01_3B87
    ret


toc_07_6711:
    call toc_01_088C
    jr   nz, .return_07_673B

    call toc_07_7D35
    add  a, $08
    cp   $10
    jr   nc, .else_07_673C

    call toc_07_7D45
toc_07_6711.toc_07_6722:
    call JumpTable_66B6_07.toc_07_66CC
    ld   hl, $C240
    add  hl, bc
    sla  [hl]
    ld   hl, $C250
    add  hl, bc
    sla  [hl]
    call JumpTable_3B8D_00
    ld   [hl], $02
    call toc_01_0891
    ld   [hl], $30
toc_07_6711.return_07_673B:
    ret


toc_07_6711.else_07_673C:
    call toc_07_7D45
    add  a, $08
    cp   $10
    jr   nc, .return_07_674A

    call toc_07_7D35
    jr   .toc_07_6722

toc_07_6711.return_07_674A:
    ret


    db   $CD, $91, $08, $20, $0B, $36, $20, $CD
    db   $8D, $3B, $70, $CD, $8C, $08, $36, $40
    db   $F0, $E7, $1F, $1F, $E6, $01, $CD, $87
    db   $3B, $C9, $55, $56, $0A, $0B, $0C, $0D
    db   $0E, $0F, $55, $56, $55, $56, $1A, $1B
    db   $1C, $1D, $1E, $1F, $55, $56, $55, $56
    db   $04, $05, $64, $65, $06, $07, $55, $56
    db   $55, $56, $14, $15, $66, $67, $16, $17
    db   $55, $56, $76, $76, $72, $73, $76, $76
    db   $72, $73, $68, $69, $76, $76, $73, $72
    db   $76, $76, $73, $72, $77, $4B, $6C, $6C
    db   $6C, $6C, $76, $76, $76, $76, $72, $73
    db   $6C, $6C, $6C, $6C, $76, $76, $76, $76
    db   $73, $72, $6D, $6D, $6C, $6C, $6C, $6C
    db   $6C, $6C, $6C, $6C, $6D, $6D, $6C, $6C
    db   $6C, $6C, $6C, $6C, $6C, $6C, $55, $56
    db   $6E, $6E, $6E, $6E, $6E, $6E, $55, $56
    db   $55, $56, $6E, $6E, $6E, $6E, $6E, $6E
    db   $55, $56, $55, $56, $6E, $6E, $6E, $6E
    db   $6E, $6E, $55, $56, $55, $56, $6E, $6E
    db   $6E, $6E, $6E, $6E, $55, $56, $6D, $6D
    db   $6D, $6D, $6D, $6D, $6D, $6D, $6D, $6D
    db   $6D, $6D, $6D, $6D, $6D, $6D, $6D, $6D
    db   $6D, $6D, $6D, $6D, $6D, $6D, $6D, $6D
    db   $6D, $6D, $6D, $6D, $6D, $6D, $6D, $6D
    db   $6D, $6D, $6D, $6D, $6D, $6D, $6D, $6D
    db   $6D, $6D, $6D, $6D, $6D, $6D, $6D, $6D
    db   $6D, $6D, $6D, $6D, $6D, $6D, $6D, $6D
    db   $6D, $6D, $3A, $D5, $D6, $D7, $3A, $3A
    db   $CD, $E1, $CE, $3A, $03, $09, $03, $09
    db   $C6, $1B, $1B, $03, $03, $09, $0E, $1B
    db   $1B, $1B, $1B, $02, $12, $22, $32, $42
    db   $00, $08, $10, $18, $20, $28, $30, $38
    db   $40, $48, $CD, $76, $7C, $3E, $02, $E0
    db   $A1, $EA, $67, $C1, $F0, $F0, $C7

    dw JumpTable_686A_07 ; 00

    db   $75, $68, $81, $68, $8D, $68

JumpTable_686A_07:
    call toc_07_4000
    call toc_01_0891
    ld   [hl], $28
    jp   JumpTable_3B8D_00

    db   $CD, $91, $08, $C0, $3E, $4C, $EA, $68
    db   $D3, $C3, $8D, $3B, $3E, $1D, $E0, $F4
    db   $CD, $91, $08, $36, $80, $C3, $8D, $3B
    db   $F0, $E7, $1E, $00, $E6, $08, $28, $02
    db   $1E, $02, $7B, $EA, $55, $C1, $CD, $91
    db   $08, $C0, $21, $B0, $C2, $09, $7E, $5F
    db   $3C, $77, $E0, $E8, $7B, $E6, $1F, $C2
    db   $BB, $68, $21, $D0, $C3, $09, $7E, $FE
    db   $0A, $CA, $40, $69, $3C, $77, $21, $D0
    db   $C3, $09, $E5, $7E, $5F, $50, $21, $4A
    db   $68, $19, $7E, $E0, $CD, $3E, $20, $E0
    db   $CE, $CD, $39, $28, $E1, $7E, $3D, $5F
    db   $CB, $27, $CB, $27, $CB, $27, $83, $83
    db   $5F, $50, $21, $65, $67, $F0, $E8, $E6
    db   $01, $28, $03, $21, $C9, $67, $19, $E5
    db   $FA, $00, $D6, $5F, $50, $C6, $0D, $EA
    db   $00, $D6, $21, $01, $D6, $19, $F0, $CF
    db   $22, $F0, $D0, $22, $3E, $09, $22, $D1
    db   $C5, $0E, $0A, $1A, $13, $22, $0D, $20
    db   $FA, $70, $C1, $C5, $21, $D0, $C3, $09
    db   $7E, $3D, $1F, $E6, $07, $F5, $5F, $50
    db   $21, $46, $68, $19, $5E, $21, $11, $D7
    db   $19, $E5, $C1, $F1, $5F, $CB, $27, $CB
    db   $27, $83, $5F, $16, $00, $21, $2D, $68
    db   $19, $1E, $05, $2A, $02, $03, $1D, $20
    db   $FA, $C1, $C9, $AF, $EA, $55, $C1, $EA
    db   $67, $C1, $CD, $BD, $27, $C3, $7C, $7D
    db   $21, $40, $C4, $09, $7E, $FE, $FF, $CA
    db   $55, $68, $A7, $20, $04, $34, $CD, $E1
    db   $6D, $CD, $C2, $6E, $F0, $EA, $FE, $05
    db   $C2, $82, $7D, $CD, $76, $7C, $CD, $0E
    db   $38, $CD, $12, $3F, $21, $20, $C4, $09
    db   $7E, $FE, $16, $20, $1B, $F0, $F0, $FE
    db   $09, $30, $10, $70, $21, $20, $C3, $09
    db   $70, $CD, $8D, $3B, $3E, $09, $77, $E0
    db   $F0, $18, $05, $21, $D0, $C3, $09, $34
    db   $CD, $98, $7C, $CD, $1B, $7D, $21, $20
    db   $C3, $09, $35, $35, $21, $10, $C3, $09
    db   $7E, $E6, $80, $E0, $E8, $28, $06, $70
    db   $21, $20, $C3, $09, $70, $F0, $F0, $FE
    db   $09, $30, $14, $CD, $E0, $3B, $21, $10
    db   $C4, $09, $FA, $3E, $C1, $B6, $A7, $20
    db   $06, $CD, $D5, $3B, $CD, $EB, $3B, $F0
    db   $F0, $C7

    dw JumpTable_69EB_07 ; 00

    db   $01, $6A, $22, $6A, $74, $6A, $D4, $6A
    db   $03, $6B, $49, $6B, $28, $6C, $70, $6C
    db   $93, $6C, $B4, $6C, $EF, $6C, $0D, $6D
    db   $6F, $6D

JumpTable_69EB_07:
    ld   hl, $C320
    add  hl, bc
    ld   [hl], b
    call toc_01_0891
    jr   nz, .return_07_6A00

    ld   [hl], $30
    call JumpTable_3B8D_00
    ld   hl, $C310
    add  hl, bc
    ld   [hl], $6F
JumpTable_69EB_07.return_07_6A00:
    ret


    db   $CD, $91, $08, $28, $0E, $FE, $01, $20
    db   $04, $3E, $08, $E0, $F2, $21, $20, $C3
    db   $09, $70, $C9, $F0, $E8, $A7, $28, $08
    db   $CD, $91, $08, $36, $40, $CD, $8D, $3B
    db   $C9, $CD, $91, $08, $FE, $01, $20, $16
    db   $1E, $12, $F0, $F6, $FE, $92, $28, $0A
    db   $FE, $84, $28, $06, $FE, $80, $20, $06
    db   $1E, $14, $7B, $CD, $85, $21, $CD, $91
    db   $08, $20, $0D, $36, $A0, $F0, $F6, $FE
    db   $95, $28, $02, $36, $20, $C3, $8D, $3B
    db   $21, $0E, $D2, $36, $F0, $21, $0B, $D2
    db   $36, $F8, $21, $0D, $D2, $36, $F0, $FE
    db   $20, $38, $0F, $21, $0E, $D2, $36, $F2
    db   $21, $0B, $D2, $36, $FA, $21, $0D, $D2
    db   $36, $F2, $C9, $CD, $91, $08, $20, $05
    db   $36, $20, $C3, $8D, $3B, $E6, $3F, $20
    db   $00, $CD, $91, $08, $E6, $40, $28, $26
    db   $CD, $01, $6E, $21, $08, $D2, $36, $01
    db   $21, $09, $D2, $70, $21, $0A, $D2, $36
    db   $F0, $21, $0B, $D2, $36, $F8, $21, $0D
    db   $D2, $36, $F3, $21, $0C, $D2, $36, $10
    db   $21, $07, $D2, $36, $00, $C9, $CD, $01
    db   $6E, $21, $08, $D2, $70, $21, $09, $D2
    db   $70, $21, $0A, $D2, $36, $F8, $21, $0B
    db   $D2, $36, $F8, $21, $0D, $D2, $36, $F0
    db   $21, $0C, $D2, $36, $10, $21, $07, $D2
    db   $36, $00, $C9, $CD, $B1, $6D, $CD, $91
    db   $08, $20, $26, $CD, $ED, $27, $E6, $1F
    db   $C6, $30, $77, $3E, $08, $CD, $25, $3C
    db   $CD, $8D, $3B, $CD, $35, $7D, $21, $80
    db   $C3, $09, $73, $CD, $89, $6A, $21, $80
    db   $C3, $09, $7E, $A7, $20, $03, $CD, $AF
    db   $6A, $C9, $CD, $B1, $6D, $CD, $35, $7D
    db   $C6, $20, $FE, $40, $30, $14, $CD, $45
    db   $7D, $C6, $1C, $FE, $38, $30, $0B, $CD
    db   $8D, $3B, $36, $06, $CD, $91, $08, $36
    db   $30, $C9, $CD, $91, $08, $20, $0E, $CD
    db   $ED, $27, $E6, $0F, $C6, $10, $77, $CD
    db   $8D, $3B, $36, $04, $C9, $E6, $0F, $20
    db   $08, $FA, $09, $D2, $EE, $01, $EA, $09
    db   $D2, $CD, $E2, $7C, $CD, $9E, $3B, $C9
    db   $CD, $91, $08, $20, $17, $CD, $91, $08
    db   $36, $20, $CD, $8D, $3B, $36, $04, $21
    db   $50, $C3, $09, $CB, $FE, $21, $30, $C4
    db   $09, $CB, $B6, $C9, $21, $80, $C3, $09
    db   $7E, $A7, $20, $5B, $CD, $91, $08, $FE
    db   $18, $38, $13, $CD, $AF, $6A, $3E, $08
    db   $EA, $0C, $D2, $3E, $E0, $EA, $0D, $D2
    db   $3E, $01, $EA, $07, $D2, $C9, $FE, $10
    db   $38, $23, $FE, $17, $20, $0A, $3E, $27
    db   $E0, $F4, $21, $00, $C3, $09, $36, $10
    db   $3E, $FF, $EA, $07, $D2, $3E, $F0, $EA
    db   $0A, $D2, $3E, $F4, $EA, $0B, $D2, $3E
    db   $01, $EA, $08, $D2, $C9, $3E, $03, $EA
    db   $07, $D2, $3E, $F8, $EA, $0C, $D2, $3E
    db   $08, $EA, $0D, $D2, $3E, $F0, $EA, $0A
    db   $D2, $3E, $F0, $EA, $0B, $D2, $C9, $CD
    db   $91, $08, $FE, $18, $38, $18, $CD, $89
    db   $6A, $3E, $01, $EA, $09, $D2, $3E, $F8
    db   $EA, $0C, $D2, $3E, $E8, $EA, $0D, $D2
    db   $3E, $00, $EA, $07, $D2, $C9, $FE, $10
    db   $38, $23, $FE, $17, $20, $0A, $3E, $27
    db   $E0, $F4, $21, $00, $C3, $09, $36, $10
    db   $3E, $FF, $EA, $07, $D2, $3E, $F0, $EA
    db   $0A, $D2, $3E, $F0, $EA, $0B, $D2, $3E
    db   $00, $EA, $08, $D2, $C9, $3E, $02, $EA
    db   $07, $D2, $3E, $10, $EA, $0C, $D2, $3E
    db   $08, $EA, $0D, $D2, $3E, $F0, $EA, $0A
    db   $D2, $3E, $EC, $EA, $0B, $D2, $C9, $CD
    db   $F4, $6A, $CD, $91, $08, $20, $27, $CD
    db   $8D, $3B, $CD, $44, $72, $21, $B0, $C2
    db   $09, $7E, $21, $20, $C3, $09, $36, $30
    db   $A7, $20, $07, $36, $28, $3E, $18, $C3
    db   $25, $3C, $3E, $08, $CD, $25, $3C, $21
    db   $50, $C2, $09, $36, $F0, $C9, $FA, $0E
    db   $D2, $C6, $02, $EA, $0E, $D2, $FA, $0B
    db   $D2, $C6, $02, $EA, $0B, $D2, $FA, $0D
    db   $D2, $C6, $02, $EA, $0D, $D2, $C9, $CD
    db   $91, $08, $28, $0D, $3D, $20, $03, $CD
    db   $4E, $6B, $CD, $F4, $6A, $CD, $57, $6C
    db   $C9, $CD, $42, $6B, $F0, $E8, $A7, $28
    db   $08, $CD, $91, $08, $36, $10, $CD, $21
    db   $6A, $C9, $F0, $E8, $A7, $28, $18, $CD
    db   $8D, $3B, $CD, $91, $08, $36, $20, $21
    db   $50, $C3, $09, $CB, $BE, $21, $30, $C4
    db   $09, $CB, $F6, $3E, $28, $E0, $F2, $CD
    db   $42, $6B, $C9, $CD, $91, $08, $20, $06
    db   $36, $C0, $CD, $8D, $3B, $C9, $21, $0B
    db   $D2, $7E, $D6, $03, $28, $07, $CB, $7F
    db   $28, $02, $34, $34, $35, $21, $0D, $D2
    db   $7E, $D6, $03, $28, $07, $CB, $7F, $28
    db   $02, $34, $34, $35, $CD, $91, $08, $FE
    db   $14, $30, $0A, $FA, $0E, $D2, $A7, $28
    db   $04, $3C, $EA, $0E, $D2, $C9, $CD, $91
    db   $08, $20, $06, $36, $30, $CD, $8D, $3B
    db   $C9, $FE, $30, $30, $0E, $E6, $03, $20
    db   $0A, $FA, $0E, $D2, $C6, $02, $2F, $3C
    db   $EA, $0E, $D2, $C9, $FA, $0E, $D2, $FE
    db   $F0, $28, $04, $3D, $EA, $0E, $D2, $CD
    db   $91, $08, $20, $2F, $1E, $FF, $F0, $F6
    db   $FE, $80, $28, $08, $1E, $03, $FE, $95
    db   $28, $02, $1E, $02, $21, $D0, $C3, $09
    db   $7E, $BB, $38, $14, $21, $50, $C3, $09
    db   $CB, $FE, $CD, $8D, $3B, $3E, $13, $CD
    db   $85, $21, $CD, $91, $08, $36, $04, $C9
    db   $C3, $4E, $6B, $FE, $24, $30, $1E, $21
    db   $0B, $D2, $7E, $D6, $F8, $28, $07, $CB
    db   $7F, $28, $02, $34, $34, $35, $21, $0D
    db   $D2, $7E, $D6, $F0, $28, $07, $CB, $7F
    db   $28, $02, $34, $34, $35, $C9, $CD, $F4
    db   $6A, $CD, $91, $08, $28, $0B, $3D, $20
    db   $04, $3E, $3F, $E0, $F4, $CD, $57, $6C
    db   $C9, $21, $20, $C3, $09, $36, $30, $21
    db   $10, $C3, $09, $7E, $FE, $78, $38, $1F
    db   $CD, $BD, $27, $CD, $7C, $7D, $21, $00
    db   $D9, $F0, $F6, $5F, $50, $F0, $F7, $FE
    db   $1A, $30, $05, $FE, $06, $38, $01, $14
    db   $19, $7E, $F6, $20, $77, $E0, $F8, $C9
    db   $21, $B0, $C2, $09, $70, $CD, $35, $7D
    db   $C6, $30, $FE, $60, $30, $14, $CD, $45
    db   $7D, $C6, $30, $FE, $60, $30, $0B, $7B
    db   $FE, $02, $20, $13, $21, $B0, $C2, $09
    db   $36, $01, $CD, $8D, $3B, $36, $07, $CD
    db   $91, $08, $36, $20, $CD, $EC, $6A, $C9
    db   $21, $10, $C3, $09, $36, $7F, $CD, $91
    db   $08, $36, $80, $F0, $B0, $21, $90, $C3
    db   $09, $77, $21, $60, $C3, $09, $36, $FF
    db   $F0, $F6, $FE, $80, $20, $02, $36, $C0
    db   $3E, $F8, $EA, $0A, $D2, $3E, $F8, $EA
    db   $0B, $D2, $3E, $F0, $EA, $0E, $D2, $3E
    db   $00, $EA, $07, $D2, $EA, $08, $D2, $EA
    db   $09, $D2, $3E, $10, $EA, $0C, $D2, $3E
    db   $F0, $EA, $0D, $D2, $C9, $70, $00, $70
    db   $20, $00, $F8, $60, $00, $00, $00, $62
    db   $00, $00, $08, $64, $00, $00, $10, $66
    db   $00, $00, $F8, $66, $20, $00, $00, $64
    db   $20, $00, $08, $62, $20, $00, $10, $60
    db   $20, $00, $F8, $68, $00, $00, $00, $6A
    db   $00, $00, $08, $6C, $00, $00, $10, $6E
    db   $00, $00, $F8, $6E, $20, $00, $00, $6C
    db   $20, $00, $08, $6A, $20, $00, $10, $68
    db   $20, $00, $00, $72, $00, $F8, $08, $74
    db   $00, $F8, $00, $74, $20, $00, $08, $72
    db   $20, $00, $00, $72, $40, $08, $08, $74
    db   $40, $08, $00, $74, $60, $00, $08, $72
    db   $60, $10, $00, $76, $00, $10, $08, $78
    db   $00, $10, $10, $7A, $00, $08, $18, $7C
    db   $00, $F8, $18, $7E, $00, $10, $08, $76
    db   $20, $10, $00, $78, $20, $10, $F8, $7A
    db   $20, $08, $F0, $7C, $20, $F8, $F0, $7E
    db   $20, $0C, $FB, $26, $00, $0C, $01, $26
    db   $00, $0C, $07, $26, $00, $0C, $0D, $26
    db   $00, $21, $10, $C3, $09, $7E, $FE, $70
    db   $30, $5C, $CD, $F8, $6E, $CD, $28, $6F
    db   $CD, $4F, $6F, $CD, $84, $6F, $CD, $A5
    db   $6F, $21, $10, $C3, $09, $7E, $A7, $28
    db   $13, $F0, $EF, $D6, $02, $E0, $EC, $21
    db   $B2, $6E, $0E, $04, $CD, $26, $3D, $3E
    db   $04, $CD, $D0, $3D, $C3, $BA, $3D, $FA
    db   $0C, $D2, $21, $EE, $FF, $86, $77, $FA
    db   $0D, $D2, $21, $EC, $FF, $86, $77, $FA
    db   $07, $D2, $FE, $FF, $28, $15, $17, $17
    db   $17, $E6, $F8, $5F, $50, $21, $6A, $6E
    db   $19, $0E, $02, $CD, $26, $3D, $3E, $02
    db   $C3, $48, $6F, $CD, $BA, $3D, $C9, $21
    db   $00, $C3, $09, $7E, $A7, $28, $1E, $CD
    db   $CC, $6F, $21, $80, $C3, $09, $7E, $21
    db   $8A, $6E, $A7, $28, $03, $21, $9E, $6E
    db   $0E, $05, $CD, $26, $3D, $3E, $05, $CD
    db   $D0, $3D, $CD, $BA, $3D, $C9, $FA, $0A
    db   $D2, $21, $EE, $FF, $86, $77, $FA, $0A
    db   $D2, $C6, $0C, $EA, $C0, $D5, $FA, $0B
    db   $D2, $21, $EC, $FF, $86, $77, $FA, $0B
    db   $D2, $C6, $08, $EA, $C2, $D5, $3E, $08
    db   $EA, $C1, $D5, $3E, $06, $EA, $C3, $D5
    db   $11, $26, $6E, $CD, $3B, $3C, $3E, $02
    db   $C3, $48, $6F, $FA, $0E, $D2, $21, $EC
    db   $FF, $86, $77, $FA, $08, $D2, $17, $17
    db   $17, $17, $E6, $F0, $5F, $50, $21, $2A
    db   $6E, $19, $0E, $04, $CD, $26, $3D, $3E
    db   $04, $C3, $48, $6F, $FA, $0E, $D2, $FE
    db   $00, $C8, $FA, $0F, $D2, $21, $EC, $FF
    db   $86, $77, $FA, $09, $D2, $17, $17, $17
    db   $17, $E6, $F0, $5F, $50, $21, $4A, $6E
    db   $19, $0E, $04, $CD, $26, $3D, $3E, $04
    db   $C3, $48, $6F, $21, $46, $C1, $FA, $C7
    db   $DB, $B6, $20, $51, $F0, $EC, $C6, $18
    db   $5F, $F0, $99, $21, $A2, $FF, $96, $C6
    db   $08, $93, $C6, $0C, $FE, $18, $30, $3D
    db   $21, $80, $C3, $09, $1E, $08, $7E, $A7
    db   $28, $02, $1E, $F8, $F0, $EE, $83, $21
    db   $98, $FF, $96, $C6, $1A, $FE, $34, $30
    db   $24, $3E, $28, $CD, $30, $3C, $F0, $D7
    db   $E0, $9B, $F0, $D8, $E0, $9A, $3E, $02
    db   $EA, $46, $C1, $3E, $13, $E0, $A3, $3E
    db   $08, $EA, $94, $DB, $3E, $20, $EA, $C7
    db   $DB, $3E, $03, $E0, $F3, $C9, $12, $14
    db   $16, $18, $19, $1A, $1A, $1A, $1A, $1A
    db   $CD, $76, $7C, $CD, $35, $7D, $C6, $20
    db   $FE, $40, $30, $09, $CD, $45, $7D, $C6
    db   $20, $FE, $40, $38, $66, $21, $B0, $C3
    db   $09, $7E, $3C, $77, $E6, $7F, $C0, $1E
    db   $0F, $50, $21, $A0, $C3, $19, $7E, $FE
    db   $82, $28, $1A, $FE, $9E, $28, $16, $FE
    db   $7D, $28, $12, $21, $40, $C3, $19, $7E
    db   $E6, $80, $20, $09, $21, $80, $C2, $19
    db   $7E, $FE, $05, $28, $07, $1D, $7B, $FE
    db   $FF, $20, $D7, $C9, $FA, $8F, $C1, $A7
    db   $C0, $3E, $7D, $CD, $01, $3C, $38, $23
    db   $F0, $D7, $21, $00, $C2, $19, $77, $F0
    db   $D8, $21, $10, $C2, $19, $77, $C5, $D5
    db   $C1, $F0, $F7, $5F, $3E, $14, $FE, $0A
    db   $30, $05, $21, $27, $70, $19, $7E, $CD
    db   $25, $3C, $C1, $C9, $21, $60, $C4, $09
    db   $7E, $FE, $00, $20, $13, $F0, $F8, $E6
    db   $10, $C2, $7C, $7D, $21, $60, $C4, $09
    db   $36, $FF, $21, $E0, $C4, $09, $36, $3C
    db   $CD, $76, $7C, $21, $B0, $C3, $09, $70
    db   $21, $10, $C4, $09, $7E, $A7, $28, $70
    db   $3E, $14, $CD, $01, $3C, $38, $69, $21
    db   $E0, $C4, $09, $7E, $21, $E0, $C4, $19
    db   $77, $F0, $D7, $21, $00, $C2, $19, $77
    db   $F0, $D8, $21, $10, $C2, $19, $C6, $08
    db   $77, $CD, $64, $3E, $F0, $EE, $D6, $08
    db   $E0, $CE, $F0, $EF, $D6, $10, $E0, $CD
    db   $F0, $CE, $CB, $37, $E6, $0F, $5F, $F0
    db   $CD, $E6, $F0, $B3, $5F, $50, $21, $11
    db   $D7, $19, $36, $91, $CD, $39, $28, $FA
    db   $00, $D6, $5F, $16, $00, $21, $01, $D6
    db   $19, $C6, $0A, $EA, $00, $D6, $1E, $08
    db   $CD, $36, $71, $1E, $09, $F0, $CF, $22
    db   $F0, $D0, $22, $3C, $E0, $D0, $3E, $81
    db   $22, $7B, $22, $3C, $3C, $22, $AF, $77
    db   $C9, $74, $00, $74, $20, $76, $00, $78
    db   $00, $7A, $00, $7A, $20, $78, $20, $76
    db   $20, $7C, $00, $7C, $00, $11, $4A, $71
    db   $CD, $3B, $3C, $CD, $76, $7C, $CD, $98
    db   $7C, $CD, $B4, $3B, $CD, $E2, $7C, $CD
    db   $9E, $3B, $21, $A0, $C2, $09, $7E, $E6
    db   $03, $20, $07, $7E, $E6, $0C, $20, $0C
    db   $18, $12, $21, $40, $C2, $09, $7E, $2F
    db   $3C, $77, $18, $08, $21, $50, $C2, $09
    db   $7E, $2F, $3C, $77, $F0, $E7, $1F, $1F
    db   $1F, $E6, $03, $CD, $87, $3B, $C9, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $54
    db   $00, $54, $20, $52, $00, $52, $20, $56
    db   $00, $56, $00, $F0, $F1, $FE, $01, $20
    db   $08, $11, $B0, $71, $CD, $D0, $3C, $18
    db   $06, $11, $A0, $71, $CD, $3B, $3C, $CD
    db   $76, $7C, $CD, $98, $7C, $CD, $1B, $7D
    db   $21, $20, $C3, $09, $35, $35, $21, $10
    db   $C3, $09, $7E, $E6, $80, $E0, $E8, $28
    db   $06, $70, $21, $20, $C3, $09, $70, $F0
    db   $F0, $C7

    dw JumpTable_71F9_07 ; 00

    db   $25, $72, $56, $72, $64, $72, $86, $72
    db   $AB, $72, $E3, $72

JumpTable_71F9_07:
    call toc_01_0891
    jr   nz, .return_07_7224

    call toc_07_7D35
    add  a, $20
    cp   $40
    jr   nc, .return_07_7224

    call toc_07_7D45
    add  a, $20
    cp   $40
    jr   nc, .return_07_7224

    call JumpTable_3B8D_00
    call toc_01_0891
    ld   [hl], $20
    call toc_01_27ED
    and  %00000011
    add  a, $03
    ld   hl, $C2B0
    add  hl, bc
    ld   [hl], a
JumpTable_71F9_07.return_07_7224:
    ret


    db   $CD, $91, $08, $20, $1F, $21, $10, $C3
    db   $09, $36, $08, $21, $20, $C3, $09, $36
    db   $08, $21, $40, $C3, $09, $36, $12, $3E
    db   $03, $CD, $87, $3B, $CD, $8D, $3B, $3E
    db   $24, $E0, $F2, $C9, $1E, $01, $FE, $10
    db   $30, $02, $1E, $02, $7B, $CD, $87, $3B
    db   $C9, $F0, $E8, $A7, $28, $08, $CD, $91
    db   $08, $36, $20, $CD, $8D, $3B, $C9, $CD
    db   $EB, $3B, $CD, $91, $08, $20, $09, $36
    db   $10, $CD, $AF, $3D, $CD, $8D, $3B, $C9
    db   $1E, $08, $E6, $04, $28, $02, $1E, $F8
    db   $21, $40, $C2, $09, $73, $CD, $EF, $7C
    db   $C9, $CD, $B4, $3B, $CD, $E2, $7C, $CD
    db   $05, $73, $CD, $91, $08, $20, $11, $3E
    db   $0C, $CD, $25, $3C, $21, $20, $C3, $09
    db   $36, $18, $CD, $44, $72, $CD, $8D, $3B
    db   $3E, $03, $CD, $87, $3B, $C9, $CD, $B4
    db   $3B, $CD, $E2, $7C, $CD, $05, $73, $F0
    db   $E8, $A7, $28, $24, $CD, $AF, $3D, $CD
    db   $8D, $3B, $36, $04, $CD, $91, $08, $36
    db   $20, $21, $B0, $C2, $09, $35, $20, $10
    db   $CD, $8D, $3B, $36, $06, $CD, $91, $08
    db   $36, $30, $21, $40, $C3, $09, $36, $D2
    db   $3E, $02, $CD, $87, $3B, $C9, $CD, $91
    db   $08, $20, $0B, $36, $50, $CD, $8D, $3B
    db   $70, $AF, $CD, $87, $3B, $C9, $1E, $03
    db   $FE, $20, $30, $07, $1E, $01, $FE, $10
    db   $38, $01, $1C, $7B, $CD, $87, $3B, $C9
    db   $21, $10, $C4, $09, $36, $03, $CD, $9E
    db   $3B, $21, $10, $C4, $09, $70, $C9, $CD
    db   $76, $7C, $F0, $F0, $C7

    dw JumpTable_731E_07 ; 00

    db   $B7, $73

JumpTable_731E_07:
    ld   a, [$FFEE]
    and  %01110000
    ld   [$D201], a
    call toc_01_0891
    ld   [hl], $80
    call JumpTable_3B8D_00
    ret


    db   $23, $56, $26, $53, $32, $47, $42, $37
    db   $33, $46, $43, $36, $24, $55, $25, $54
    db   $21, $28, $53, $56, $34, $45, $35, $44
    db   $31, $48, $38, $41, $14, $66, $15, $63
    db   $31, $45, $38, $44, $13, $56, $16, $53
    db   $27, $42, $47, $22, $65, $33, $64, $36
    db   $23, $56, $26, $53, $32, $47, $42, $37
    db   $33, $46, $43, $36, $24, $55, $25, $54
    db   $23, $56, $26, $53, $32, $47, $42, $37
    db   $33, $46, $43, $36, $24, $55, $25, $54
    db   $23, $56, $26, $53, $32, $47, $42, $37
    db   $33, $46, $43, $36, $24, $55, $25, $54
    db   $23, $56, $26, $53, $32, $47, $42, $37
    db   $33, $46, $43, $36, $24, $55, $25, $54
    db   $23, $56, $26, $53, $32, $47, $42, $37
    db   $33, $46, $43, $36, $24, $55, $25, $54
    db   $30, $30, $30, $30, $30, $30, $30, $28
    db   $28, $21, $D0, $C3, $09, $7E, $FE, $10
    db   $CA, $7C, $7D, $CD, $91, $08, $20, $75
    db   $E5, $F0, $F7, $5F, $50, $21, $AE, $73
    db   $19, $7E, $E1, $77, $3E, $5A, $CD, $01
    db   $3C, $38, $62, $21, $B0, $C2, $19, $36
    db   $02, $C5, $FA, $01, $D2, $21, $D0, $C3
    db   $09, $86, $34, $4F, $21, $40, $C4, $19
    db   $F0, $EF, $D6, $10, $E6, $F0, $28, $01
    db   $77, $79, $FE, $0F, $20, $0B, $FA, $8E
    db   $C1, $E6, $1F, $FE, $03, $20, $02, $36
    db   $01, $21, $2E, $73, $09, $7E, $F5, $CB
    db   $37, $E6, $F0, $F6, $08, $21, $00, $C2
    db   $19, $77, $F1, $E6, $F0, $C6, $10, $21
    db   $10, $C2, $19, $77, $21, $40, $C3, $19
    db   $36, $12, $21, $50, $C3, $19, $36, $00
    db   $21, $30, $C4, $19, $36, $00, $21, $D0
    db   $C4, $19, $36, $00, $C1, $C9, $70, $00
    db   $70, $20, $72, $00, $72, $20, $11, $3C
    db   $74, $CD, $3B, $3C, $CD, $76, $7C, $CD
    db   $98, $7C, $F0, $E7, $1F, $1F, $1F, $1F
    db   $E6, $01, $CD, $87, $3B, $CD, $E2, $7C
    db   $CD, $9E, $3B, $21, $A0, $C2, $09, $7E
    db   $E6, $0F, $28, $0F, $CD, $91, $08, $36
    db   $10, $CD, $AF, $3D, $CD, $8D, $3B, $AF
    db   $77, $E0, $F0, $CD, $B4, $3B, $F0, $F0
    db   $C7

    dw JumpTable_7485_07 ; 00

    db   $A6, $74, $C7, $74

JumpTable_7485_07:
    call toc_01_0891
    jr   nz, .return_07_74A5

    ld   [hl], $20
    call JumpTable_3B8D_00
    call toc_01_27ED
    and  %00000010
    dec  a
    ld   hl, $C2B0
    add  hl, bc
    ld   [hl], a
    call toc_01_27ED
    and  %00000010
    dec  a
    ld   hl, $C2C0
    add  hl, bc
    ld   [hl], a
JumpTable_7485_07.return_07_74A5:
    ret


    db   $CD, $91, $08, $CA, $8D, $3B, $E6, $01
    db   $20, $16, $21, $B0, $C2, $09, $7E, $21
    db   $40, $C2, $09, $86, $77, $21, $C0, $C2
    db   $09, $7E, $21, $50, $C2, $09, $86, $77
    db   $C9, $F0, $E7, $E6, $01, $20, $21, $21
    db   $40, $C2, $09, $7E, $A7, $20, $0A, $CD
    db   $8D, $3B, $70, $CD, $91, $08, $36, $10
    db   $C9, $CD, $E7, $74, $21, $50, $C2, $09
    db   $7E, $CB, $7F, $28, $02, $34, $34, $35
    db   $C9, $60, $00, $62, $00, $64, $00, $66
    db   $00, $62, $60, $60, $60, $66, $60, $64
    db   $60, $66, $20, $64, $20, $21, $60, $C4
    db   $09, $7E, $A7, $28, $04, $79, $EA, $01
    db   $D2, $11, $EF, $74, $CD, $3B, $3C, $CD
    db   $76, $7C, $CD, $E2, $7C, $CD, $1B, $7D
    db   $CD, $9E, $3B, $21, $20, $C3, $09, $35
    db   $35, $21, $10, $C3, $09, $7E, $E0, $E8
    db   $3D, $E6, $80, $28, $11, $70, $21, $20
    db   $C3, $09, $7E, $E0, $E9, $CB, $2F, $2F
    db   $FE, $07, $30, $01, $AF, $77, $F0, $F0
    db   $C7

    dw JumpTable_7551_07 ; 00

    db   $51, $75, $69, $75, $02, $76, $3B, $76

JumpTable_7551_07:
    call toc_07_764B
    ret


    db   $00, $0C, $10, $0C, $00, $F4, $F0, $F4
    db   $F0, $F4, $00, $0C, $10, $0C, $00, $F4
    db   $00, $01, $04, $00, $CD, $91, $08, $20
    db   $16, $CD, $AF, $3D, $CD, $8D, $3B, $CD
    db   $ED, $27, $E6, $03, $5F, $50, $21, $65
    db   $75, $19, $7E, $CD, $87, $3B, $C9, $E6
    db   $07, $20, $09, $21, $B0, $C3, $09, $7E
    db   $3C, $E6, $03, $77, $F0, $E8, $3D, $E6
    db   $80, $28, $3E, $CD, $FB, $75, $F0, $E9
    db   $D6, $FC, $E6, $80, $20, $06, $F0, $E7
    db   $E6, $07, $20, $2D, $CD, $ED, $27, $E6
    db   $01, $1E, $01, $28, $02, $1E, $FF, $21
    db   $80, $C3, $09, $7E, $83, $E6, $07, $77
    db   $5F, $50, $21, $55, $75, $19, $7E, $21
    db   $40, $C2, $09, $77, $21, $5D, $75, $19
    db   $7E, $21, $50, $C2, $09, $77, $CD, $FB
    db   $75, $21, $A0, $C2, $09, $7E, $A7, $28
    db   $23, $21, $80, $C3, $09, $7E, $EE, $04
    db   $77, $CD, $91, $08, $CB, $3E, $21, $40
    db   $C2, $CD, $F4, $75, $21, $50, $C2, $09
    db   $7E, $2F, $CB, $2F, $3C, $77, $21, $D0
    db   $C5, $09, $36, $FF, $C9, $21, $60, $C4
    db   $09, $7E, $A7, $20, $30, $FA, $01, $D2
    db   $5F, $50, $21, $90, $C2, $19, $7E, $FE
    db   $03, $20, $22, $34, $CD, $8D, $3B, $F0
    db   $F1, $FE, $00, $20, $0A, $21, $B0, $C3
    db   $19, $7E, $FE, $00, $CA, $EC, $08, $21
    db   $E0, $C2, $19, $36, $40, $CD, $91, $08
    db   $36, $40, $C3, $AC, $08, $C9, $CD, $91
    db   $08, $FE, $01, $20, $05, $3E, $01, $CD
    db   $87, $3B, $CD, $4B, $76, $C9

toc_07_764B:
    call toc_01_3BD5
    jr   nc, .return_07_769B

    ld   a, [$C19B]
    and  a
    jr   nz, .return_07_769B

    ifNe [$DB00], $03, .else_07_7665

    ld   a, [$FFCC]
    and  %00100000
    jr   nz, .else_07_7672

    jr   .return_07_769B

toc_07_764B.else_07_7665:
    ifNe [$DB01], $03, .return_07_769B

    ld   a, [$FFCC]
    and  %00010000
    jr   z, .return_07_769B

toc_07_764B.else_07_7672:
    ld   a, [$C3CF]
    and  a
    jr   nz, .return_07_769B

    inc  a
    ld   [$C3CF], a
    call JumpTable_3B8D_00
    ld   [hl], $02
    ld   hl, $C280
    add  hl, bc
    ld   [hl], $07
    ld   hl, $C490
    add  hl, bc
    ld   [hl], b
    copyFromTo [hLinkDirection], [$C15D]
    call toc_01_0891
    ld   [hl], $02
    ld   hl, $FFF3
    ld   [hl], $02
toc_07_764B.return_07_769B:
    ret


    db   $70, $00, $70, $20, $72, $00, $72, $20
    db   $74, $00, $74, $20, $76, $00, $76, $20
    db   $60, $00, $60, $20, $62, $00, $62, $20
    db   $64, $00, $64, $20, $66, $00, $66, $20
    db   $11, $9C, $76, $F0, $F7, $FE, $03, $20
    db   $03, $11, $AC, $76, $CD, $3B, $3C, $CD
    db   $76, $7C, $21, $10, $C4, $09, $7E, $A7
    db   $28, $03, $CD, $AF, $3D, $CD, $98, $7C
    db   $CD, $B4, $3B, $CD, $E2, $7C, $CD, $1B
    db   $7D, $CD, $9E, $3B, $21, $20, $C3, $09
    db   $35, $35, $21, $10, $C3, $09, $7E, $CB
    db   $7F, $20, $03, $A7, $20, $2D, $70, $F0
    db   $F0, $FE, $03, $20, $21, $21, $40, $C2
    db   $09, $CB, $2E, $21, $50, $C2, $09, $CB
    db   $2E, $21, $20, $C3, $09, $7E, $CB, $2F
    db   $2F, $77, $FE, $07, $30, $06, $70, $CD
    db   $AF, $3D, $18, $07, $18, $05, $21, $20
    db   $C3, $09, $70, $F0, $F0, $FE, $04, $38
    db   $01, $C9, $C7

    dw JumpTable_773F_07 ; 00

    db   $7B, $77, $C0, $77, $09, $78, $06, $FA
    db   $00, $00, $00, $00, $FA, $06

JumpTable_773F_07:
    call toc_01_3DAF
    call toc_01_0891
    jr   nz, .else_07_7779

    call toc_01_27ED
    and  %00011111
    add  a, $30
    ld   [hl], a
    call JumpTable_3B8D_00
    call toc_01_27ED
    and  %00000110
    jr   nz, .else_07_775E

    call toc_07_7D55
    jr   .toc_07_7764

JumpTable_773F_07.else_07_775E:
    call toc_01_27ED
    and  %00000011
    ld   e, a
JumpTable_773F_07.toc_07_7764:
    ld   d, b
    ld   hl, $7737
    add  hl, de
    ld   a, [hl]
    ld   hl, $C240
    add  hl, bc
    ld   [hl], a
    ld   hl, $773B
    add  hl, de
    ld   a, [hl]
    ld   hl, $C250
    add  hl, bc
    ld   [hl], a
JumpTable_773F_07.else_07_7779:
    jr   toc_07_7789

    db   $CD, $91, $08, $20, $06, $36, $18, $CD
    db   $8D, $3B, $70, $CD, $FD, $77

toc_07_7789:
    ld   hl, $C350
    add  hl, bc
    ld   [hl], $80
    ld   hl, $C430
    add  hl, bc
    ld   [hl], $48
    call toc_07_7D35
    add  a, $06
    cp   $0A
    jr   c, toc_07_77A7

    call toc_07_7D45
    add  a, $06
    cp   $0A
    jr   nc, toc_07_77B7

toc_07_77A7:
    call toc_07_7D55
    ld   hl, $C380
    add  hl, bc
    ld   [hl], e
    call JumpTable_3B8D_00
    call toc_01_0891
    ld   [hl], $FF
toc_07_77B7:
    ret


    db   $18, $E8, $00, $00, $00, $00, $E8, $18
    db   $CD, $91, $08, $28, $34, $21, $80, $C3
    db   $09, $5E, $50, $21, $B8, $77, $19, $7E
    db   $21, $40, $C2, $09, $96, $28, $07, $E6
    db   $80, $20, $02, $34, $34, $35, $21, $BC
    db   $77, $19, $7E, $21, $50, $C2, $09, $96
    db   $28, $07, $E6, $80, $20, $02, $34, $34
    db   $35, $21, $A0, $C2, $09, $7E, $A7, $28
    db   $04, $CD, $8D, $3B, $70, $F0, $E7, $1F
    db   $1F, $1F, $1F, $E6, $01, $CD, $87, $3B
    db   $C9, $21, $30, $C4, $09, $36, $08, $21
    db   $50, $C3, $09, $36, $00, $F0, $E7, $1F
    db   $1F, $1F, $1F, $E6, $01, $3C, $3C, $CD
    db   $87, $3B, $CD, $91, $08, $20, $10, $CD
    db   $8D, $3B, $70, $21, $20, $C3, $09, $36
    db   $18, $21, $40, $C2, $09, $70, $C9, $FE
    db   $60, $30, $0D, $E6, $04, $3E, $08, $20
    db   $02, $3E, $F8, $21, $40, $C2, $09, $77
    db   $21, $10, $C4, $09, $7E, $F5, $36, $01
    db   $CD, $9E, $3B, $F1, $21, $10, $C4, $09
    db   $77, $C9, $06, $04, $02, $00, $F0, $F7
    db   $FE, $15, $20, $08, $FA, $56, $DB, $FE
    db   $80, $C2, $7C, $7D, $CD, $D5, $79, $CD
    db   $76, $7C, $F0, $F7, $FE, $15, $28, $08
    db   $21, $10, $C4, $09, $7E, $A7, $28, $03
    db   $CD, $75, $79, $CD, $98, $7C, $CD, $E0
    db   $3B, $CD, $B4, $3B, $F0, $F0, $C7

    dw JumpTable_789D_07 ; 00

    db   $D2, $78, $F5, $78, $06, $FA, $00, $00
    db   $00, $00, $FA, $06

JumpTable_789D_07:
    call toc_01_3B9E
    ld   hl, $C3D0
    add  hl, bc
    ld   [hl], $00
    call toc_07_794D
    call toc_01_0891
    jr   nz, .return_07_78D1

    ld   [hl], $80
    call JumpTable_3B8D_00
    ld   hl, $C380
    add  hl, bc
    ld   a, [hl]
    xor  $01
    ld   [hl], a
    ld   e, a
    ld   d, b
    ld   hl, $7895
    add  hl, de
    ld   a, [hl]
    ld   hl, $C240
    add  hl, bc
    ld   [hl], a
    ld   hl, $7899
    add  hl, de
    ld   a, [hl]
    ld   hl, $C250
    add  hl, bc
    ld   [hl], a
JumpTable_789D_07.return_07_78D1:
    ret


    db   $CD, $4D, $79, $21, $A0, $C2, $09, $7E
    db   $A7, $28, $03, $CD, $B3, $78, $CD, $E2
    db   $7C, $CD, $9E, $3B, $CD, $FA, $7B, $CD
    db   $91, $08, $20, $06, $36, $30, $CD, $8D
    db   $3B, $70, $C9, $CD, $8C, $08, $28, $1D
    db   $FA, $6B, $C1, $FE, $04, $20, $16, $F0
    db   $F7, $FE, $15, $20, $10, $21, $D0, $C2
    db   $09, $7E, $A7, $20, $2E, $34, $3E, $90
    db   $CD, $85, $21, $18, $26, $7E, $A7, $20
    db   $22, $CD, $91, $08, $20, $05, $36, $18
    db   $CD, $F0, $78, $CD, $FA, $7B, $CD, $FA
    db   $7B, $CD, $E2, $7C, $CD, $9E, $3B, $F0
    db   $E7, $A9, $E6, $0F, $20, $10, $3E, $0A
    db   $CD, $25, $3C, $CD, $55, $7D, $21, $80
    db   $C3, $09, $77, $CD, $FA, $7B, $C9, $01
    db   $00, $03, $02

toc_07_794D:
    ld   a, [$C502]
    and  a
    jr   nz, .else_07_7975

    call toc_07_7D35
    add  a, $30
    cp   $60
    jr   nc, .return_07_798C

    call toc_07_7D45
    add  a, $30
    cp   $60
    jr   nc, .return_07_798C

    call toc_07_7D55
    ld   d, b
    ld   hl, $7949
    add  hl, de
    ld   a, [hl]
    ld   hl, $C380
    add  hl, bc
    cp   [hl]
    jr   z, .return_07_798C

toc_07_794D.else_07_7975:
    ld   hl, $C290
    add  hl, bc
    ld   a, [hl]
    cp   $02
    jr   z, .else_07_7985

    push hl
    call toc_01_088C
    ld   [hl], $10
    pop  hl
toc_07_794D.else_07_7985:
    ld   [hl], $02
    call toc_01_0891
    ld   [hl], $80
toc_07_794D.return_07_798C:
    ret


    db   $00, $00, $F9, $F9, $F8, $F2, $08, $0E
    db   $08, $0E, $F8, $F2, $00, $00, $00, $00
    db   $02, $02, $06, $06, $04, $04, $00, $00
    db   $0C, $0C, $04, $04, $FC, $FC, $14, $14
    db   $14, $14, $FC, $FC, $0C, $0C, $0C, $0C
    db   $60, $00, $62, $00, $62, $20, $60, $20
    db   $64, $00, $66, $00, $66, $20, $64, $20
    db   $68, $00, $6A, $00, $6C, $00, $6E, $00
    db   $6A, $20, $68, $20, $6E, $20, $6C, $20
    db   $CD, $87, $3D, $F0, $F1, $FE, $02, $30
    db   $03, $CD, $39, $7A, $C5, $F0, $EC, $E0
    db   $D7, $F0, $EE, $E0, $D8, $F0, $F1, $5F
    db   $50, $21, $A5, $79, $19, $7E, $EA, $C0
    db   $D5, $21, $AD, $79, $19, $7E, $EA, $C2
    db   $D5, $3E, $02, $EA, $C1, $D5, $EA, $C3
    db   $D5, $21, $9D, $79, $19, $7E, $E0, $D9
    db   $21, $95, $79, $19, $7E, $21, $8D, $79
    db   $19, $6E, $67, $E5, $FA, $C0, $C3, $5F
    db   $16, $00, $21, $30, $C0, $19, $E5, $C1
    db   $AF, $E0, $DA, $E1, $CD, $40, $15, $C1
    db   $3E, $02, $CD, $D0, $3D, $11, $B5, $79
    db   $CD, $3B, $3C, $C9, $EE, $01, $F5, $FA
    db   $C0, $C3, $6F, $26, $00, $11, $30, $C0
    db   $19, $D1, $F0, $EC, $82, $C6, $04, $22
    db   $F0, $EE, $C6, $FE, $22, $3E, $86, $22
    db   $36, $10, $3E, $01, $CD, $D0, $3D, $C9
    db   $82, $10, $86, $10, $88, $10, $8A, $10
    db   $8C, $10, $98, $10, $90, $10, $92, $10
    db   $96, $10, $8E, $10, $80, $10, $84, $10
    db   $94, $10, $9A, $10, $AE, $10, $9C, $10
    db   $A0, $10, $C0, $10, $C2, $10, $C4, $10
    db   $C6, $10, $CA, $10, $C0, $10, $C2, $10
    db   $C4, $10, $C6, $10, $CA, $10, $A6, $10
    db   $A6, $10, $A6, $10, $A6, $10, $A6, $10
    db   $9E, $10, $90, $91, $92, $93, $94, $95
    db   $96, $97, $98, $99, $9A, $9B, $9C, $9D
    db   $9E, $9F, $A0, $A1, $A2, $A3, $A4, $A5
    db   $A6, $A7, $A8, $A9, $AA, $AC, $AB, $AD
    db   $AE, $AE, $EF, $06, $10, $10, $10, $10
    db   $10, $10, $10, $10, $10, $01, $01, $10
    db   $10, $10, $10, $10, $01, $10, $10, $10
    db   $10, $10, $01, $01, $01, $01, $01, $01
    db   $01, $01, $01, $01, $01, $00, $3E, $02
    db   $E0, $A1, $AF, $EA, $37, $C1, $EA, $6A
    db   $C1, $F0, $F1, $FE, $22, $20, $3B, $3E
    db   $1B, $CD, $01, $3C, $DA, $7C, $7D, $F0
    db   $D7, $21, $00, $C2, $19, $77, $F0, $D8
    db   $21, $10, $C2, $19, $77, $21, $20, $C3
    db   $19, $36, $18, $21, $10, $C3, $19, $36
    db   $06, $21, $F0, $C2, $19, $36, $50, $21
    db   $40, $C2, $19, $36, $08, $21, $90, $C2
    db   $19, $36, $03, $3E, $1D, $E0, $F2, $C3
    db   $7C, $7D, $FE, $21, $28, $06, $11, $5D
    db   $7A, $CD, $D0, $3C, $FA, $9F, $C1, $A7
    db   $C2, $CF, $7B, $CD, $E2, $7C, $21, $D0
    db   $C3, $09, $7E, $3C, $77, $FE, $10, $20
    db   $06, $21, $50, $C2, $09, $36, $00, $FE
    db   $08, $20, $19, $F0, $F1, $5F, $50, $21
    db   $C1, $7A, $19, $7E, $A7, $28, $0D, $FE
    db   $01, $20, $06, $3E, $01, $E0, $F2, $18
    db   $03, $EA, $68, $D3, $21, $D0, $C3, $09
    db   $7E, $FE, $26, $20, $4E, $F0, $F1, $5F
    db   $50, $FE, $21, $20, $0D, $F0, $F6, $FE
    db   $96, $20, $07, $3E, $11, $CD, $85, $21
    db   $18, $38, $7B, $FE, $01, $20, $0B, $FA
    db   $44, $DB, $FE, $02, $20, $04, $3E, $ED
    db   $18, $25, $7B, $FE, $0B, $20, $0B, $FA
    db   $4E, $DB, $FE, $02, $20, $04, $3E, $9F
    db   $18, $15, $7B, $FE, $00, $20, $0B, $FA
    db   $43, $DB, $FE, $02, $20, $04, $3E, $EE
    db   $18, $05, $21, $9F, $7A, $19, $7E, $CD
    db   $97, $21, $AF, $FE, $28, $20, $03, $CD
    db   $7C, $7D, $C9

toc_07_7BD0:
    call toc_01_3BD5
    jr   nc, .else_07_7BF4

    call toc_01_094A
    call toc_01_093B.toc_01_0942
    ifNot [$C1A6], .else_07_7BF2

    ld   e, a
    ld   d, b
    ld   hl, $C39F
    add  hl, de
    ld   a, [hl]
    cp   $03
    jr   nz, .else_07_7BF2

    ld   hl, $C28F
    add  hl, de
    ld   [hl], $00
toc_07_7BD0.else_07_7BF2:
    scf
    ret


toc_07_7BD0.else_07_7BF4:
    and  a
    ret


    db   $06, $04, $02, $00, $21, $80, $C3, $09
    db   $5E, $50, $21, $F6, $7B, $19, $E5, $21
    db   $D0, $C3, $09, $34, $7E, $1F, $1F, $1F
    db   $1F, $E1, $E6, $01, $B6, $C3, $87, $3B

toc_07_7C16:
    ld   e, b
    ld   a, [hLinkPositionY]
    ld   hl, $FFEF
    sub  a, [hl]
    add  a, $14
    cp   56
    jr   toc_07_7C23.toc_07_7C2E

toc_07_7C23:
    ld   e, b
    ld   a, [hLinkPositionY]
    ld   hl, $FFEF
    sub  a, [hl]
    add  a, $14
    cp   40
toc_07_7C23.toc_07_7C2E:
    jr   nc, .else_07_7C74

    ld   a, [hLinkPositionX]
    ld   hl, $FFEE
    sub  a, [hl]
    add  a, $10
    cp   32
    jr   nc, .else_07_7C74

    inc  e
    ifEq [$FFEB], $B5, .else_07_7C4F

    push de
    call toc_07_7D55
    ld   a, [hLinkDirection]
    xor  $01
    cp   e
    pop  de
    jr   nz, .else_07_7C74

toc_07_7C23.else_07_7C4F:
    ld   hl, $C1AD
    ld   [hl], $01
    ld   a, [wDialogState]
    ld   hl, $C14F
    or   [hl]
    ld   hl, $C146
    or   [hl]
    ld   hl, $C134
    or   [hl]
    jr   nz, .else_07_7C74

    ifNe [$DB9A], $80, .else_07_7C74

    ld   a, [$FFCC]
    and  %00010000
    jr   z, .else_07_7C74

    scf
    ret


toc_07_7C23.else_07_7C74:
    and  a
    ret


toc_07_7C76:
    ifNe [$FFEA], $05, .else_07_7C96

    ifEq [wGameMode], GAMEMODE_WORLD_MAP, .else_07_7C96

    ld   a, [wDialogState]
    ld   hl, $C1A8
    or   [hl]
    ld   hl, $C14F
    or   [hl]
    jr   nz, .else_07_7C96

    ifNot [$C124], .return_07_7C97

toc_07_7C76.else_07_7C96:
    pop  af
toc_07_7C76.return_07_7C97:
    ret


    db   $21, $10, $C4, $09, $7E, $A7, $28, $41
    db   $3D, $77, $CD, $B8, $3E, $21, $40, $C2
    db   $09, $7E, $F5, $21, $50, $C2, $09, $7E
    db   $F5, $21, $F0, $C3, $09, $7E, $21, $40
    db   $C2, $09, $77, $21, $00, $C4, $09, $7E
    db   $21, $50, $C2, $09, $77, $CD, $E2, $7C
    db   $21, $30, $C4, $09, $7E, $E6, $20, $20
    db   $03, $CD, $9E, $3B, $21, $50, $C2, $09
    db   $F1, $77, $21, $40, $C2, $09, $F1, $77
    db   $F1, $C9

toc_07_7CE2:
    call toc_07_7CEF
    push bc
    ld   a, c
    add  a, $10
    ld   c, a
    call toc_07_7CEF
    pop  bc
    ret


toc_07_7CEF:
    ld   hl, $C240
    add  hl, bc
    ld   a, [hl]
    and  a
    jr   z, .return_07_7D1A

    push af
    swap a
    and  %11110000
    ld   hl, $C260
    add  hl, bc
    add  a, [hl]
    ld   [hl], a
    rl   d
    ld   hl, $C200
    add  hl, bc
    pop  af
    ld   e, $00
    bit  7, a
    jr   z, .else_07_7D11

    ld   e, $F0
toc_07_7CEF.else_07_7D11:
    swap a
    and  %00001111
    or   e
    rr   d
    adc  [hl]
    ld   [hl], a
toc_07_7CEF.return_07_7D1A:
    ret


    db   $21, $20, $C3, $09, $7E, $A7, $28, $F7
    db   $F5, $CB, $37, $E6, $F0, $21, $30, $C3
    db   $09, $86, $77, $CB, $12, $21, $10, $C3
    db   $18, $D2

toc_07_7D35:
    ld   e, $00
    ld   a, [hLinkPositionX]
    ld   hl, $C200
    add  hl, bc
    sub  a, [hl]
    bit  7, a
    jr   z, .else_07_7D43

    inc  e
toc_07_7D35.else_07_7D43:
    ld   d, a
    ret


toc_07_7D45:
    ld   e, $02
    ld   a, [hLinkPositionY]
    ld   hl, $C210
    add  hl, bc
    sub  a, [hl]
    bit  7, a
    jr   nz, .else_07_7D53

    inc  e
toc_07_7D45.else_07_7D53:
    ld   d, a
    ret


toc_07_7D55:
    call toc_07_7D35
    ld   a, e
    ld   [$FFD7], a
    ld   a, d
    bit  7, a
    jr   z, .else_07_7D62

    cpl
    inc  a
toc_07_7D55.else_07_7D62:
    push af
    call toc_07_7D45
    ld   a, e
    ld   [$FFD8], a
    ld   a, d
    bit  7, a
    jr   z, .else_07_7D70

    cpl
    inc  a
toc_07_7D55.else_07_7D70:
    pop  de
    cp   d
    jr   nc, .else_07_7D78

    ld   a, [$FFD7]
    jr   .toc_07_7D7A

toc_07_7D55.else_07_7D78:
    ld   a, [$FFD8]
toc_07_7D55.toc_07_7D7A:
    ld   e, a
    ret


    db   $21, $80, $C2, $09, $70, $C9, $21, $C0
    db   $C2, $09, $7E, $C7

    dw JumpTable_7D8E_07 ; 00

    db   $9F, $7D, $B0, $7D

JumpTable_7D8E_07:
    call toc_01_0891
    ld   [hl], $A0
    ld   hl, $C420
    add  hl, bc
    ld   [hl], $FF
    ld   hl, $C2C0
    add  hl, bc
    inc  [hl]
    ret


    db   $CD, $91, $08, $20, $0B, $36, $C0, $21
    db   $20, $C4, $09, $36, $FF, $CD, $99, $7D
    db   $C9, $CD, $91, $08, $20, $38, $F0, $EB
    db   $FE, $5F, $20, $29, $3E, $30, $CD, $01
    db   $3C, $F0, $D7, $21, $00, $C2, $19, $77
    db   $F0, $D8, $21, $10, $C2, $19, $77, $21
    db   $20, $C3, $19, $36, $18, $21, $F0, $C2
    db   $19, $36, $20, $21, $90, $C3, $09, $7E
    db   $E0, $B0, $C3, $54, $7E, $CD, $D7, $08
    db   $CD, $BD, $27, $C3, $7A, $3F, $CD, $F1
    db   $7D, $C9, $E6, $07, $20, $1D, $CD, $ED
    db   $27, $E6, $1F, $D6, $10, $5F, $21, $EE
    db   $FF, $86, $77, $CD, $ED, $27, $E6, $1F
    db   $D6, $14, $5F, $21, $EC, $FF, $86, $77
    db   $CD, $13, $7E, $C9, $CD, $7C, $7C, $F0
    db   $EE, $E0, $D7, $F0, $EC, $E0, $D8, $3E
    db   $02, $CD, $53, $09, $3E, $13, $E0, $F4
    db   $C9, $3E, $36, $CD, $01, $3C, $F0, $D7
    db   $21, $00, $C2, $19, $77, $F0, $D8, $21
    db   $10, $C2, $19, $77, $F0, $F9, $A7, $28
    db   $08, $21, $50, $C2, $09, $36, $F0, $18
    db   $0C, $21, $20, $C3, $19, $36, $10, $21
    db   $10, $C3, $19, $36, $08, $CD, $7C, $7D
    db   $21, $F4, $FF, $36, $1A, $C9, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF, $FF, $FF, $FF, $FF, $FF, $FF, $FF
    db   $FF
